Update __init__.py (#24553)

Fix the broken charging status
pull/24564/head
lundan 2019-06-16 09:44:39 +02:00 committed by Daniel Høyer Iversen
parent c629f24f07
commit a0b1b2e254
1 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,9 @@ class LeafDataStore:
self.data[DATA_PLUGGED_IN] = (
server_response.is_connected
)
self.data[DATA_CHARGING] = (
server_response.is_charging
)
async_dispatcher_send(self.hass, SIGNAL_UPDATE_LEAF)
self.last_battery_response = utcnow()