try something
This commit is contained in:
parent
519c6503a4
commit
7d591b5408
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@ class Device(CaseInsensitive):
|
|||
new_services = [new_services]
|
||||
services.extend([Service(**service) for service in new_services])
|
||||
if self.deviceList:
|
||||
devices.extend([Device(devices, services, **kw) for kw in self.deviceList.values()])
|
||||
devices.extend([Device(devices, services, **(kw if isinstance(kw, dict) else kw[0]))
|
||||
for kw in self.deviceList.values()])
|
||||
|
||||
|
||||
class Gateway(object):
|
||||
|
|
Loading…
Reference in a new issue