devices: make iteration device classes compatible with Python2
This commit is contained in:
parent
174f155d31
commit
268d11fbff
@ -303,7 +303,7 @@ class DeviceManager(dict):
|
|||||||
return self[key]
|
return self[key]
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
yield from self._get_device_classes()
|
return iter(self._get_device_classes())
|
||||||
|
|
||||||
def keys(self):
|
def keys(self):
|
||||||
return self._get_device_classes()
|
return self._get_device_classes()
|
||||||
|
Loading…
Reference in New Issue
Block a user