From 97d9aebe2fb231b2471db300db2be9387ce77b64 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 8 Aug 2021 00:07:28 +0300 Subject: fix a bug --- main.py | 5 ++--- 1 file 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: -- cgit v1.2.3