Fix slow status updates from the knx bus (#5963)

* Fix slow status updates from the knx bus

The data set in the entity was an array, not the value.

@fixes https://github.com/home-assistant/home-assistant/issues/4407

* speed up status update
pull/5198/merge
Gert-Jan van de Streek 2017-02-13 22:48:48 +01:00 committed by Pascal Vizeli
parent 401263519d
commit 5cad539859
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ class KNXGroupAddress(Entity):
information relating to this device.
"""
if (addr == self.state_address) or (addr == self.address):
self._state = data
self.update_ha_state()
self._state = data[0]
self.schedule_update_ha_state()
KNXTUNNEL.register_listener(self.address, handle_knx_message)
if self.state_address: