mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
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
@ -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…
x
Reference in New Issue
Block a user