better logging

This commit is contained in:
John Lancaster
2023-11-25 18:50:57 -06:00
parent e644eefa6d
commit f877cab66d

View File

@@ -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()