Adding helper for get and set values (#5743)
* cleanup * Update __init__.py * Update __init__.py * Update __init__.py
This commit is contained in:
1 parent
c550a316a4
commit
298575f7cb
5 files changed
+219
-226
No files matched your search
@@ -217,11 +217,9 @@ class ZwaveColorLight(ZwaveDimmer):
|
||||
self._value_color = value_color
|
||||
|
||||
if self._value_color_channels is None:
|
||||
for value_color_channels in self._value.node.get_values(
|
||||
class_id=zwave.const.COMMAND_CLASS_SWITCH_COLOR,
|
||||
genre=zwave.const.GENRE_SYSTEM,
|
||||
type=zwave.const.TYPE_INT).values():
|
||||
self._value_color_channels = value_color_channels
|
||||
self._value_color_channels = self.get_value(
|
||||
class_id=zwave.const.COMMAND_CLASS_SWITCH_COLOR,
|
||||
genre=zwave.const.GENRE_SYSTEM, type=zwave.const.TYPE_INT)
|
||||
|
||||
if self._value_color and self._value_color_channels:
|
||||
_LOGGER.debug("Zwave node color values found.")
|
||||
|
||||
Reference in new issue
Block a user