Bug: Crash when sensor is currently unavailable #7
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
HorlabsDE/HOHA-Addons#7
Loading…
Add table
Add a link
Reference in a new issue
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'