homeassistant-blitzortung icon indicating copy to clipboard operation
homeassistant-blitzortung copied to clipboard

New Issue since 2022.3

Open wrexed03 opened this issue 2 years ago • 0 comments

Constantly appearing in the logs.

2022-03-03 22:58:40 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 381, in state if value.tzinfo is None: AttributeError: 'str' object has no attribute 'tzinfo' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 526, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _async_write_ha_state state = self._stringify_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 392, in state raise ValueError( ValueError: Invalid datetime: sensor.last_lightning_strike has a timestamp device class but does not provide a datetime state but <class 'str'>

wrexed03 avatar Mar 03 '22 21:03 wrexed03