From bf77fd0f7c15cadc69cecff55199384ada2ae64d Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 28 Oct 2020 22:49:54 +0100 Subject: [PATCH] Update wideq/client.py Co-authored-by: Adrian Sampson --- wideq/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wideq/client.py b/wideq/client.py index b7d68b7..76428f3 100644 --- a/wideq/client.py +++ b/wideq/client.py @@ -152,7 +152,7 @@ class Client(object): return None classes = util.device_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', deviceInfo.type) return Device(self, deviceInfo)