better logging
This commit is contained in:
@@ -87,9 +87,12 @@ class SleepSetter(Hass, Mqtt):
|
||||
def handle_action(self, action: str):
|
||||
if action == '':
|
||||
return
|
||||
elif action == 'hold':
|
||||
|
||||
if action == 'hold':
|
||||
self.log(f' {action.upper()} '.center(50, '='))
|
||||
self.state = True
|
||||
elif action == 'double':
|
||||
self.log(f' {action.upper()} '.center(50, '='))
|
||||
self.state = not self.state
|
||||
self.on_apps()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user