V
Size: a a a
V
DL
AL
V
2020-10-16 10:53:52 ERROR (MainThread) [homeassistant.components.sensor] gismeteo: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 346, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gismeteo/sensor.py", line 126, in update
self._wd.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/gismeteo/__init__.py", line 352, in update
ATTR_WEATHER_PRECIPITATION_AMOUNT: self._get(current_v, "prflt", float),
File "/config/custom_components/gismeteo/__init__.py", line 153, in _get
res = func(res)
TypeError: float() argument must be a string or a number, not 'NoneType'
AL
O
O
V
V
V
This is not a component error - unfortunately, this is an error on the Gismeteo server. I don't know when they fix it. Therefore, I added a check to the component for the correctness of the data returned from the server. All invalid data is now simply ignored.
V
AL
V
V
V
SF
D
V
IB
VL