Ensure history LazyState state value is always a string (#45644)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
J. Nick Koston
2021-01-28 09:05:02 -06:00
committed by GitHub
parent fdcf1fccf8
commit 0da4034179

View File

@@ -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