mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02: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:
committed by
Pascal Vizeli
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'),
|
||||
|
Reference in New Issue
Block a user