diff options
-rw-r--r-- | main.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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: |