forked from home-assistant/core
Ensure history LazyState state value is always a string (#45644)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
@@ -699,7 +699,7 @@ class LazyState(State):
|
|||||||
"""Init the lazy state."""
|
"""Init the lazy state."""
|
||||||
self._row = row
|
self._row = row
|
||||||
self.entity_id = self._row.entity_id
|
self.entity_id = self._row.entity_id
|
||||||
self.state = self._row.state
|
self.state = self._row.state or ""
|
||||||
self._attributes = None
|
self._attributes = None
|
||||||
self._last_changed = None
|
self._last_changed = None
|
||||||
self._last_updated = None
|
self._last_updated = None
|
||||||
|
Reference in New Issue
Block a user