mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 01:46:11 -04:00
Ensure history LazyState state value is always a string (#45644)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
committed by
Paulus Schoutsen
co-authored by
Paulus Schoutsen
parent
385bdc4058
commit
9e5bf6b9f6
@@ -699,7 +699,7 @@ class LazyState(State):
|
||||
"""Init the lazy state."""
|
||||
self._row = row
|
||||
self.entity_id = self._row.entity_id
|
||||
self.state = self._row.state
|
||||
self.state = self._row.state or ""
|
||||
self._attributes = None
|
||||
self._last_changed = None
|
||||
self._last_updated = None
|
||||
|
||||
Reference in New Issue
Block a user