-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Somebody can help me please? I am getting the below error when i start the AppDeamon:
2023-01-05 14:49:48.246531 INFO replay_lights: started
2023-01-05 14:49:48.247819 INFO replay_lights: Defaulting Home Assistant config directory to /config
2023-01-05 14:49:48.250710 INFO AppDaemon: App initialization complete
2023-01-05 14:49:53.004592 INFO replay_lights: Scheduling Replaying 7 day[s] back
2023-01-05 14:49:53.004849 WARNING replay_lights: ------------------------------------------------------------
2023-01-05 14:49:53.005069 WARNING replay_lights: Unexpected error in worker for App replay_lights:
2023-01-05 14:49:53.005288 WARNING replay_lights: Worker Ags: {'id': '48ab0c12ac2b4fa194a248c1c9b4f5bc', 'name': 'replay_lights', 'objectid': '002323eb3a384000ac83a6d57d6750dd', 'type': 'scheduler', 'function': <bound method ReplayLights.scheduleNextEventBatch of <replay_lights.ReplayLights object at 0x7f777cfcf610>>, 'pin_app': True, 'pin_thread': 5, 'kwargs': {'interval': 3600, '__thread_id': 'thread-5'}}
2023-01-05 14:49:53.005537 WARNING replay_lights: ------------------------------------------------------------
2023-01-05 14:49:53.006016 WARNING replay_lights: Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/appdaemon/threading.py", line 904, in worker
funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/ReplayLightsHistory/replay_lights.py", line 108, in scheduleNextEventBatch
for entity_id, event_new_state, c_date in result:
UnboundLocalError: local variable 'result' referenced before assignment
2023-01-05 14:49:53.006220 WARNING replay_lights: ------------------------------------------------------------