#Any idea how to find the entity causing
1 messages · Page 1 of 1 (latest)
2024-05-21 14:46:22.241 ERROR (MainThread) [homeassistant.components.esphome.entry_data] Error while calling subscription
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/esphome/entry_data.py", line 376, in async_update_state
subscription()
File "/usr/src/homeassistant/homeassistant/components/esphome/entity.py", line 288, in _on_state_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
if state_attributes := self.state_attributes:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 1200, in state_attributes
data[ATTR_BRIGHTNESS] = self.brightness
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/esphome/entity.py", line 136, in _wrapper
val = func(self)
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/esphome/light.py", line 311, in brightness
return round(self._state.brightness * 255)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: cannot convert float NaN to integer