bob1de / hass-apps

Some useful apps and snippets to empower Home Assistant and AppDaemon even more.
Apache License 2.0
85 stars 23 forks source link

[schedy] Incorrect signature of _reevaluation_cb() #32

Closed weese closed 5 years ago

weese commented 5 years ago

Hi,

it seems that the reevaluation is currently broken. Instead of reevaluating the rooms on a change (of my tracking device) it does nothing. The logs hint to an error in the reevaluation callback:

2019-03-28 13:17:23.042769 INFO schedy: *** Initialization done.
2019-03-28 13:17:23.044003 INFO AppDaemon: App initialization complete
2019-03-28 13:23:35.014395 INFO schedy: --> Attribute 'state' of 'device_tracker.lee' changed from 'home' to 'not_home', reevaluating 5 rooms.
2019-03-28 13:23:36.006147 WARNING AppDaemon: Incorrect signature type for callback _reevaluation_cb(), should be f(self, kwargs) - discarding
bob1de commented 5 years ago

Well, that's no bug of Schedy. You're using the 4.x development branch of AppDaemon, which simply fails to recognize the correct signature. This problem has already been reported to the developers.

For now, use the stable AppDaemon 3.x.

weese commented 5 years ago

Thanks, installing appdaemon 3.0.2 fixed it.