Replies: 7 comments 2 replies
-
I have the same issue. So far not finding any workarounds other than disabling that entity. It seems like this was previously reported in #211, but closed as not reproducible. Here's the most recent entriy from my log
Here's the data about that entity from
|
Beta Was this translation helpful? Give feedback.
-
Maybe a clue, maybe not. I only get errors for I have these enabled:
The difference between them looking at
|
Beta Was this translation helpful? Give feedback.
-
Same issue here: Complete error:
|
Beta Was this translation helpful? Give feedback.
-
Not sure what station our friend @cytech used in trying to reproduce the issue, I offer mine to him for testing, it is ITRESC20 |
Beta Was this translation helpful? Give feedback.
-
this is an artifact from v2.0.0 corrected in v2.0.2.. if you are using HACS you are on your own.... |
Beta Was this translation helpful? Give feedback.
-
Hey, I made the actions 1 and 3 as per the previuous post, the issue was fixed for a few days but, unfortunately it came back again and have the HA log plenty oof the same error. I looked to the entity_registry and the "null" I added was undo. Maybe due to some HA or OS update. Thanks |
Beta Was this translation helpful? Give feedback.
-
try v2.0.8 |
Beta Was this translation helpful? Give feedback.
-
IF YOU ARE NOT REPORTING A REPRODUCIBLE BUG, PLEASE USE DISCUSSIONS
Describe the bug
I am getting hundred of times the below error message creating thousand of error lines in the HA log.
ValueError: Sensor sensor.itresc20_forecast_summary_0d has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value:
To Reproduce
Steps to reproduce the behavior: If you configere the integration using my station "itresc20" you should get the same error.
Expected behavior
Same as for all other forecast summary sensors, none of them producde any error but the one "sensor.itresc20_forecast_summary_0d".
Desktop (please complete the following information):
Home Assistant Blue / Hardkernel ODROID-N2/N2+
Core 2024.3.1
Supervisor 2024.03.0
Operating System 12.1
Frontend 20240307.0
Wunderground integration version: "version": "2.0.6",
Additional context
Registrador: homeassistant
Fuente: components/sensor/init.py:670
Ocurrió por primera vez: 21 de marzo de 2024, 03:19:01 (239 ocurrencias)
Último inicio de sesión: 11:14:03
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 668, in state
numerical_value = float(value) # type:ignore[arg-type]
^^^^^^^^^^^^
ValueError: could not convert string to float: 'Chubascos matinales. Máxima de 24 C. Vientos del NE de 10 a 15 km/h. 30% probab. de lluvia.'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 261, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 417, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 183, in async_update_listeners
update_callback()
File "/config/custom_components/wundergroundpws/sensor.py", line 200, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1113, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1050, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 670, in state
raise ValueError(
ValueError: Sensor sensor.itresc20_forecast_summary_0d has device class 'None', state class 'None' unit '' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Chubascos matinales. Máxima de 24 C. Vientos del NE de 10 a 15 km/h. 30% probab. de lluvia.' (<class 'str'>)
Beta Was this translation helpful? Give feedback.
All reactions