summaryrefslogtreecommitdiff
path: root/smart_home/lights.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-12 09:06:29 -0800
committerScott <[email protected]>2022-01-12 09:06:29 -0800
commit55a3172e37855f388b9ba0dfc91641a6c9ad1376 (patch)
tree01285a4abb59103ec437375d1133f9d00caa1497 /smart_home/lights.py
parentffc4022c1ea2c2a5892150ff55e6c9a9ddbb8756 (diff)
Scale back warnings.warn and add stacklevels= where appropriate.
Diffstat (limited to 'smart_home/lights.py')
-rw-r--r--smart_home/lights.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/smart_home/lights.py b/smart_home/lights.py
index 44b3634..237d4e0 100644
--- a/smart_home/lights.py
+++ b/smart_home/lights.py
@@ -11,7 +11,6 @@ import re
import subprocess
import sys
from typing import Any, Dict, List, Optional, Tuple
-import warnings
from overrides import overrides
import tinytuya as tt
@@ -49,7 +48,6 @@ def tplink_light_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:
@@ -57,7 +55,6 @@ def tplink_light_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.')