default manufacturer_string

This commit is contained in:
Jack Robison 2018-10-19 15:31:56 -04:00
parent 681be1d752
commit 752f603066
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -102,7 +102,7 @@ class Gateway:
@property
def manufacturer_string(self) -> str:
if not self.devices:
raise NotImplementedError()
return "UNKNOWN GATEWAY"
device = list(self.devices.values())[0]
return "%s %s" % (device.manufacturer, device.modelName)