From 5cad539859a498ead219e67d8903cfa9395b9741 Mon Sep 17 00:00:00 2001 From: Gert-Jan van de Streek Date: Mon, 13 Feb 2017 22:48:48 +0100 Subject: [PATCH] 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 --- homeassistant/components/knx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/knx.py b/homeassistant/components/knx.py index 8653f33c663..53c414922e4 100644 --- a/homeassistant/components/knx.py +++ b/homeassistant/components/knx.py @@ -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: