X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=smart_home%2Foutlets.py;h=c079cfd09d9cbbfbb8595379770ebc1c8d7497ae;hb=55a3172e37855f388b9ba0dfc91641a6c9ad1376;hp=6cc8d57ec065beabc5652c1015fa75df3307cd97;hpb=ffc4022c1ea2c2a5892150ff55e6c9a9ddbb8756;p=python_utils.git diff --git a/smart_home/outlets.py b/smart_home/outlets.py index 6cc8d57..c079cfd 100644 --- a/smart_home/outlets.py +++ b/smart_home/outlets.py @@ -13,7 +13,6 @@ import re import subprocess import sys from typing import Any, Dict, List, Optional -import warnings from meross_iot.http_api import MerossHttpClient from meross_iot.manager import MerossManager @@ -51,7 +50,6 @@ def tplink_outlet_command(command: str) -> bool: if signal != 0: msg = f'{command} died with signal {signal}' logger.warning(msg) - warnings.warn(msg) logging_utils.hlog(msg) return False else: @@ -59,7 +57,6 @@ def tplink_outlet_command(command: str) -> bool: if exit_value != 0: msg = f'{command} failed, exited {exit_value}' logger.warning(msg) - warnings.warn(msg) logging_utils.hlog(msg) return False logger.debug(f'{command} succeeded.')