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