diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-06-11 02:07:51 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-06-11 02:07:51 +0300 |
commit | 1d0b9c5d1c90c4f7c7a6eb0c3cf32ffb843f2533 (patch) | |
tree | eca16553441cbaf89db54ac6e0ad4d8ccc831c4a /bin/sound_bot.py | |
parent | 00b3cd120f6357a35ef7e8b1c3ffad458a068266 (diff) |
telegram bots: get rid of requests logging via webapi
Diffstat (limited to 'bin/sound_bot.py')
-rwxr-xr-x | bin/sound_bot.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/sound_bot.py b/bin/sound_bot.py index 518151d..fa22ba7 100755 --- a/bin/sound_bot.py +++ b/bin/sound_bot.py @@ -11,7 +11,7 @@ from typing import Optional, List, Dict, Tuple from homekit.config import config from homekit.api import WebApiClient -from homekit.api.types import SoundSensorLocation, BotType +from homekit.api.types import SoundSensorLocation from homekit.api.errors import ApiResponseError from homekit.media import SoundNodeClient, SoundRecordClient, SoundRecordFile, CameraNodeClient from homekit.soundsensor import SoundSensorServerGuardClient @@ -884,7 +884,5 @@ if __name__ == '__main__': finished_handler=record_onfinished, download_on_finish=True) - if 'api' in config: - bot.enable_logging(BotType.SOUND) bot.run() record_client.stop() |