diff --git a/room_control.py b/room_control.py index f679177..7fe7ecd 100755 --- a/room_control.py +++ b/room_control.py @@ -223,7 +223,8 @@ class RoomController(Hass, Mqtt): else: self.log(f'Skipped activating - everything is off') - def deactivate(self, *args, cause: str = 'unknown', **kwargs): + def deactivate(self, entity, attribute = None, old = None, new = None, kwargs = None): + cause = kwargs.get('cause', 'unknown') self.log(f'Deactivating: {cause}') for entity in self.app_entities: self.turn_off(entity)