Fix devolo sensor subscriber (#37337)

pull/37377/head
Markus Bong 2020-07-02 13:54:30 +02:00 committed by Paulus Schoutsen
parent f335127750
commit 9b854bdcd3
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class DevoloMultiLevelDeviceEntity(DevoloDeviceEntity):
def _sync(self, message=None): def _sync(self, message=None):
"""Update the multi level sensor state.""" """Update the multi level sensor state."""
if message[0].startswith("devolo.MultiLevelSensor"): if message[0] == self._multi_level_sensor_property.element_uid:
self._state = self._device_instance.multi_level_sensor_property[ self._state = self._device_instance.multi_level_sensor_property[
message[0] message[0]
].value ].value