From 0da4034179bcca7a3ba259532ce3f4e17859f9ba Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 28 Jan 2021 09:05:02 -0600 Subject: [PATCH] Ensure history LazyState state value is always a string (#45644) Co-authored-by: Paulus Schoutsen --- homeassistant/components/history/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/history/__init__.py b/homeassistant/components/history/__init__.py index 894c2b15e47..1e22e45a892 100644 --- a/homeassistant/components/history/__init__.py +++ b/homeassistant/components/history/__init__.py @@ -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