changes for use_dictionary_unpacking
This commit is contained in:
@@ -65,7 +65,7 @@ class SleepSetter(Hass, Mqtt):
|
||||
assert isinstance(state, float)
|
||||
return state
|
||||
|
||||
def handle_state(self, entity, attribute, old, new, kwargs):
|
||||
def handle_state(self, entity, attribute, old, new, **kwargs):
|
||||
self.log(f'new state: {self.state}')
|
||||
if self.state:
|
||||
self.all_off()
|
||||
@@ -77,7 +77,7 @@ class SleepSetter(Hass, Mqtt):
|
||||
self.log(f'Turned on scene: {self.scene}')
|
||||
# self.turn_on(self.scene)
|
||||
|
||||
def handle_button(self, event_name, data, kwargs):
|
||||
def handle_button(self, event_name, data, **kwargs):
|
||||
topic = data['topic']
|
||||
# self.log(f'Button event for: {topic}')
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user