You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails to gracefully expand arguments of kwargs with dictionary unpacking.
Version
4.4.2
Installation type
Home Assistant add-on
Relevant log output
WARNING AppDaemon: Suspect incorrect signature type for callback on_motion_detected() in my_app, should be f(self, entity, attribute, old, new, **kwargs) - discarding
Relevant code in the app or config file that caused the issue
It looks like this code could be smarter when use_dictionary_unpacking is involved. **kwargs is indeed more pythonic to the extent that we can use it for what it's meant for, that is, creating functions that take this dynamic list of arguments and expand them right away.
The text was updated successfully, but these errors were encountered:
What happened?
appdaemon/appdaemon/threading.py
Lines 1242 to 1248 in 02dfb69
Version
4.4.2
Installation type
Home Assistant add-on
Relevant log output
Relevant code in the app or config file that caused the issue
Anything else?
It looks like this code could be smarter when
use_dictionary_unpacking
is involved.**kwargs
is indeed more pythonic to the extent that we can use it for what it's meant for, that is, creating functions that take this dynamic list of arguments and expand them right away.The text was updated successfully, but these errors were encountered: