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.
This commit is contained in:
Sean Dague 2017-04-21 23:22:36 -04:00 committed by Paulus Schoutsen
parent 07fcf22aeb
commit b641f6863c

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