summaryrefslogtreecommitdiff
path: root/smart_home/registry.py
diff options
context:
space:
mode:
Diffstat (limited to 'smart_home/registry.py')
-rw-r--r--smart_home/registry.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/smart_home/registry.py b/smart_home/registry.py
index 20fb3f4..75fe052 100644
--- a/smart_home/registry.py
+++ b/smart_home/registry.py
@@ -3,7 +3,6 @@
import logging
import re
from typing import List, Optional, Set
-import warnings
import argparse_utils
import config
@@ -64,9 +63,8 @@ class SmartHomeRegistry(object):
try:
(mac, name, keywords) = line.split(",")
except ValueError:
- msg = f'SH-CONFIG> {line} is malformed?!'
+ msg = f'SH-CONFIG> "{line}" is malformed?! Skipping it.'
logger.warning(msg)
- warnings.warn(msg)
continue
mac = mac.strip()
name = name.strip()
@@ -190,7 +188,6 @@ class SmartHomeRegistry(object):
return device.Device(name, mac, kws)
msg = f'{mac} is not a known smart home device, returning None'
logger.warning(msg)
- warnings.warn(msg)
return None
def query(self, query: str) -> List[device.Device]: