Remove unreachable code for logging model errors

This commit is contained in:
G. Roggemans
2018-03-05 18:32:51 +01:00
parent 38bb43086b
commit 74b7cee069
-3
View File
@@ -110,9 +110,6 @@ class XiaomiHub:
else:
device_type = 'sensor' # not really matters
if device_type == None:
_LOGGER.error('Unsupported devices : {0}'.format(model))
else:
self.XIAOMI_DEVICES[device_type].append(xiaomi_device)
def _send_cmd(self, cmd, rtnCmd):