projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a simple test for waitable presence.
[python_utils.git]
/
smart_home
/
device.py
diff --git
a/smart_home/device.py
b/smart_home/device.py
index 9675b7c66ed26527d6c389854a8cf488a012f530..06187d7a6578e2eaedb5d86e6173977d62b6288d 100644
(file)
--- a/
smart_home/device.py
+++ b/
smart_home/device.py
@@
-8,17
+8,17
@@
import arper
class Device(object):
def __init__(
class Device(object):
def __init__(
-
self,
-
name: str,
-
mac: str,
-
keywords: Optional[List[str]]
,
+ self,
+ name: str,
+ mac: str,
+
keywords: Optional[str] = ""
,
):
self.name = name
self.mac = mac
self.keywords = keywords
self.arper = arper.Arper()
if keywords is not None:
):
self.name = name
self.mac = mac
self.keywords = keywords
self.arper = arper.Arper()
if keywords is not None:
- self.kws
= keywords.split(
)
+ self.kws
: List[str] = keywords.split(' '
)
else:
self.kws = []
else:
self.kws = []