Skip to content

Doesn't Work- defined_sensor paramter missing #14

@recrudesce

Description

@recrudesce

If I add the configuration as per the documentation I get the following error

Internal error during connect: __init__() missing 1 required positional argument: 'defined_sensor'

Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.
Printer is halted

The klippy log shows as follows:

Unhandled exception during connect
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/klippy.py", line 279, in _connect
    self._read_config()
  File "/home/pi/klipper/klippy/klippy.py", line 214, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/pi/klipper/klippy/klippy.py", line 198, in load_object
    self.objects[section] = init_func(config.getsection(section))
  File "/home/pi/klipper/klippy/extras/high_resolution_filament_sensor.py", line 988, in load_config_prefix
    return HighResolutionFilamentSensor(config)
  File "/home/pi/klipper/klippy/extras/high_resolution_filament_sensor.py", line 534, in __init__
    self.runout_helper = RunoutHelper(config, self)
  File "/home/pi/klipper/klippy/extras/high_resolution_filament_sensor.py", line 519, in __init__
    super().__init__(config)
TypeError: __init__() missing 1 required positional argument: 'defined_sensor'

I cannot find anything in the code that references defined_sensor

I am running the latest version of Kalico.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions