diff --git a/homeassistant/components/history/__init__.py b/homeassistant/components/history/__init__.py index 1e22e45a89249d..fc533e32dc2705 100644 --- a/homeassistant/components/history/__init__.py +++ b/homeassistant/components/history/__init__.py @@ -713,7 +713,7 @@ def attributes(self): self._attributes = json.loads(self._row.attributes) except ValueError: # When json.loads fails - _LOGGER.exception("Error converting row to state: %s", self) + _LOGGER.exception("Error converting row to state: %s", self._row) self._attributes = {} return self._attributes