summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.py b/main.py
index 14517b9..60df15d 100644
--- a/main.py
+++ b/main.py
@@ -105,9 +105,8 @@ def msg_status(update: Update, context: CallbackContext) -> None:
relay = RelayClient()
relay.connect()
- status = relay.status()
- logging.info('status:' + status)
- status = 'Включен' if status == 'on' else 'Выключен'
+ response = relay.status()
+ status = 'Включен' if response == 'on' else 'Выключен'
reply(update, status)
except Exception as e: