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.
pull/7211/head
Sean Dague 2017-04-21 23:22:36 -04:00 committed by Paulus Schoutsen
parent 1194690c42
commit b77b22b01a
1 changed files with 1 additions and 0 deletions

View File

@ -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):