X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=smart_home%2Fdevice.py;h=06187d7a6578e2eaedb5d86e6173977d62b6288d;hb=94c8a54eadbf8552fa4d33dc349616d125e1a638;hp=9675b7c66ed26527d6c389854a8cf488a012f530;hpb=eb9e6df32ed696158bf34dba6464277b648f5c74;p=python_utils.git diff --git a/smart_home/device.py b/smart_home/device.py index 9675b7c..06187d7 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[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: List[str] = keywords.split(' ') else: self.kws = []