summaryrefslogtreecommitdiff
path: root/smart_home/device.py
diff options
context:
space:
mode:
Diffstat (limited to 'smart_home/device.py')
-rw-r--r--smart_home/device.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/smart_home/device.py b/smart_home/device.py
index 9675b7c..02717a3 100644
--- a/smart_home/device.py
+++ b/smart_home/device.py
@@ -8,17 +8,17 @@ import arper
class Device(object):
def __init__(
- self,
- name: str,
- mac: str,
- keywords: Optional[List[str]],
+ self,
+ name: str,
+ mac: str,
+ keywords: Optional[List[str]],
):
self.name = name
self.mac = mac
self.keywords = keywords
self.arper = arper.Arper()
if keywords is not None:
- self.kws = keywords.split()
+ self.kws = keywords
else:
self.kws = []