diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-28 03:22:30 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-30 03:47:49 +0300 |
commit | 8f20c9b825cabab7a3f0f5dd2cfe000cc7f72c28 (patch) | |
tree | b5d7446e7b2fcfd42b1e5029aeef33ecb5f9715f /src/home/telegram/telegram.py | |
parent | ee09bc98aedfc6a65a5026432b399345a30a39c8 (diff) |
polaris pwk 1725cgld full support
- significant improvements, correctnesses and stability fixes in
protocol implementation
- correct handling of device appearances and disappearances
- flawlessly functioning telegram bot that re-renders kettle's state
(temperature and other) in real time
Diffstat (limited to 'src/home/telegram/telegram.py')
-rw-r--r-- | src/home/telegram/telegram.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/home/telegram/telegram.py b/src/home/telegram/telegram.py index 9c7ea73..2f94f93 100644 --- a/src/home/telegram/telegram.py +++ b/src/home/telegram/telegram.py @@ -1,6 +1,7 @@ import requests import logging +from typing import Tuple from ..config import config @@ -29,7 +30,7 @@ def send_photo(filename: str): def _send_telegram_data(text: str, parse_mode: str = None, - disable_web_page_preview: bool = False) -> tuple[dict, str]: + disable_web_page_preview: bool = False) -> Tuple[dict, str]: data = { 'chat_id': config['telegram']['chat_id'], 'text': text |