1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 07:10:09 -07:00

Update wideq/client.py

Co-authored-by: Adrian Sampson <adrian@radbox.org>
This commit is contained in:
Nicolas 2020-10-28 22:49:54 +01:00 committed by GitHub
parent 649299eacf
commit bf77fd0f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ class Client(object):
return None return None
classes = util.device_classes() classes = util.device_classes()
if deviceInfo.type in classes: if deviceInfo.type in classes:
return classes.get(deviceInfo.type)(self, deviceInfo) return classes[deviceInfo.type](self, deviceInfo)
LOGGER.debug('No specific subclass for deviceType %s, using default', LOGGER.debug('No specific subclass for deviceType %s, using default',
deviceInfo.type) deviceInfo.type)
return Device(self, deviceInfo) return Device(self, deviceInfo)