Some zwave cleanup (#6203)

This commit is contained in:
Andrey 2017-02-24 16:17:27 +02:00 committed by GitHub
parent 9f04b55572
commit b27ba9660b
8 changed files with 2 additions and 33 deletions

View file

@ -57,14 +57,6 @@ def get_device(node, value, node_config, **kwargs):
_LOGGER.debug('name=%s node_config=%s CONF_REFRESH_VALUE=%s'
' CONF_REFRESH_DELAY=%s', name, node_config,
refresh, delay)
if value.command_class != zwave.const.COMMAND_CLASS_SWITCH_MULTILEVEL:
return None
if value.type != zwave.const.TYPE_BYTE:
return None
if value.genre != zwave.const.GENRE_USER:
return None
value.set_change_verified(False)
if node.has_command_class(zwave.const.COMMAND_CLASS_SWITCH_COLOR):
return ZwaveColorLight(value, refresh, delay)