zxt 120 has changed in ozw (#2551)

pull/2556/head
John Arild Berentsen 2016-07-18 16:20:17 +02:00 committed by GitHub
parent 541fffc7fa
commit 32f228f984
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class ZWaveHvac(ZWaveDeviceEntity, HvacDevice):
class_id=COMMAND_CLASS_CONFIGURATION).values():
if value.command_class == 112 and value.index == 33:
self._current_swing_mode = value.data
self._swing_list = [0, 1]
self._swing_list = list(value.data_items)
_LOGGER.debug("self._swing_list=%s", self._swing_list)
@property
@ -235,5 +235,5 @@ class ZWaveHvac(ZWaveDeviceEntity, HvacDevice):
for value in self._node.get_values(
class_id=COMMAND_CLASS_CONFIGURATION).values():
if value.command_class == 112 and value.index == 33:
value.data = int(swing_mode)
value.data = bytes(swing_mode, 'utf-8')
break