Bug: Crash when sensor is currently unavailable #7
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[2022-12-13 08:19:10,654] [INFO] Arbeitszimmer: 21.5
sensor.arbeitszimmer_temperatur_temperature: 20.3 (20.5)
[2022-12-13 08:19:10,655] [INFO] Last update for Arbeitszimmer 0:08:12.882706 ago
[2022-12-13 08:19:40,687] [ERROR] Task exception was never retrieved
future: <Task finished name='Task-16' coro=<handle_event() done, defined at /srv/sync_ha_fb.py:16> exception=ValueError("could not convert string to float: 'unavailable'")>
Traceback (most recent call last):
File "/srv/sync_ha_fb.py", line 33, in handle_event
sensor_temp = round(float(sensor_state_temp) * 2) / 2
ValueError: could not convert string to float: 'unavailable'