From f877cab66de7724a380739d6525b1286414c6dcd Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:50:57 -0600 Subject: [PATCH] better logging --- apps/sleep.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sleep.py b/apps/sleep.py index 49d5651..dc6a7aa 100755 --- a/apps/sleep.py +++ b/apps/sleep.py @@ -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()