Correctly detect devices, which went offline during HA restart (#20933)
* Correctly detect devices, which went offline during HA restart * Update __init__.py
This commit is contained in:
parent
0f8575f939
commit
09692143d0
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ class Device(RestoreEntity):
|
|||
return
|
||||
self._state = state.state
|
||||
self.last_update_home = (state.state == STATE_HOME)
|
||||
self.last_seen = dt_util.utcnow()
|
||||
|
||||
for attr, var in (
|
||||
(ATTR_SOURCE_TYPE, 'source_type'),
|
||||
|
|
Loading…
Add table
Reference in a new issue