diff --git a/klippy/extras/safe_z_home.py b/klippy/extras/safe_z_home.py index 0a684f26..581c9878 100644 --- a/klippy/extras/safe_z_home.py +++ b/klippy/extras/safe_z_home.py @@ -7,13 +7,8 @@ class SafeZHoming: def __init__(self, config): self.printer = config.get_printer() - try: - x_pos, y_pos = config.get("home_xy_position").split(',') - self.home_x_pos, self.home_y_pos = float(x_pos), float(y_pos) - except: - raise config.error("Unable to parse home_xy_position in %s" - % (config.get_name(),)) - + x_pos, y_pos = config.getfloatlist("home_xy_position", count=2) + self.home_x_pos, self.home_y_pos = x_pos, y_pos self.z_hop = config.getfloat("z_hop", default=0.0) self.z_hop_speed = config.getfloat('z_hop_speed', 15., above=0.) zconfig = config.getsection('stepper_z')