From b641f6863cfc0779d598c903cda5479822cd5e82 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 21 Apr 2017 23:22:36 -0400 Subject: [PATCH] Fix arwn platform to update hass state when events are received (#7202) The arwn platform was refactored to be asyncio friendly, however in doing so one thing was missed which was explicitly telling hass when something interesting has happened. This led to the very interesting to debug issue that the state cards were all out of date, even though the graphs were not. --- homeassistant/components/sensor/arwn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sensor/arwn.py b/homeassistant/components/sensor/arwn.py index 0bf68e68b0d..d2e148b8204 100644 --- a/homeassistant/components/sensor/arwn.py +++ b/homeassistant/components/sensor/arwn.py @@ -116,6 +116,7 @@ class ArwnSensor(Entity): """Update the sensor with the most recent event.""" self.event = {} self.event.update(event) + self.hass.async_add_job(self.async_update_ha_state()) @property def state(self):