Moin,
Wie komme ich hier hinter?
Wenn ich es richtig sehe, dann werden hier gerade die Logiken geladen. Ich habe auch tatsächlich gerade eine Logik geändert. Aber selbst, wenn ich in die Logik nur "pass" schreibe, bleibt der Fehler.
Auch ein Entfernen aus der logic.conf hilft nicht.
Ich habe gerade keine Idee mehr, wie ich das Problem finden kann.
Gruß,
Hendrik
Wie komme ich hier hinter?
Code:
2017-08-27 15:45:08 INFO logic Main Start Logics -- logic.py:__init__:35 2017-08-27 15:45:08 ERROR smarthome Main Unhandled exception: local variable 'parents' referenced before assignment <class 'UnboundLocalError'> File "/usr/local/smarthome/bin/smarthome.py", line 653, in <module> sh.start() File "/usr/local/smarthome/bin/smarthome.py", line 346, in start self._logics = lib.logic.Logics(self, self._logic_conf_basename, self._env_logic_conf_basename) File "/usr/local/smarthome/lib/logic.py", line 43, in __init__ _config.update(self._read_logics(userlogicconf, smarthome._logic_dir)) File "/usr/local/smarthome/lib/logic.py", line 69, in _read_logics config = lib.config.parse_basename(filename, configtype='logics') File "/usr/local/smarthome/lib/config.py", line 49, in parse_basename config = parse(basename+CONF_FILE) File "/usr/local/smarthome/lib/config.py", line 88, in parse return parse_conf(filename, config) File "/usr/local/smarthome/lib/config.py", line 319, in parse_conf if level - 1 not in parents: -- smarthome.py:_excepthook:542 2
Auch ein Entfernen aus der logic.conf hilft nicht.
Ich habe gerade keine Idee mehr, wie ich das Problem finden kann.
Gruß,
Hendrik
Kommentar