more changes for dictionary unpacking

This commit is contained in:
John Lancaster
2024-08-27 19:14:26 -05:00
parent a8e0b53c53
commit 4114fb4c54
8 changed files with 26 additions and 386 deletions

View File

@@ -5,7 +5,7 @@ class Leaving(Hass):
def initialize(self):
self.listen_state(self.turn_everything_off, entity_id=self.args['person'], old='home')
def turn_everything_off(self, entity, attribute, old, new, kwargs):
def turn_everything_off(self, entity, attribute, old, new, **kwargs):
self.log(f'turning everything off')
self.log(kwargs)
for app_name in self.args['apps']: