summaryrefslogtreecommitdiff
path: root/smart_home/device.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-04 08:23:14 -0800
committerScott Gasch <[email protected]>2022-02-04 08:23:14 -0800
commit94c8a54eadbf8552fa4d33dc349616d125e1a638 (patch)
treeb72e672361e36b0c4c9d6823e98b8dafb75d3881 /smart_home/device.py
parent90dc74b2ff8f36dd2495632a8150ce37dab61f1c (diff)
Fix a bug in device.py around the type of keywords, add logging and
add manage_switch_off_timers to the deps run at each checkin.
Diffstat (limited to 'smart_home/device.py')
-rw-r--r--smart_home/device.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/smart_home/device.py b/smart_home/device.py
index 02717a3..06187d7 100644
--- a/smart_home/device.py
+++ b/smart_home/device.py
@@ -11,14 +11,14 @@ class Device(object):
self,
name: str,
mac: str,
- keywords: Optional[List[str]],
+ keywords: Optional[str] = "",
):
self.name = name
self.mac = mac
self.keywords = keywords
self.arper = arper.Arper()
if keywords is not None:
- self.kws = keywords
+ self.kws: List[str] = keywords.split(' ')
else:
self.kws = []