c0un7-z3r0 / hass-phoniebox

An Phoniebox integration for Home Assistant
MIT License
3 stars 1 forks source link

failed to parse value '-' #45

Closed c0un7-z3r0 closed 2 weeks ago

c0un7-z3r0 commented 2 weeks ago

Integration version: v0.6.0

Core-Version: 2024.6.3

Core-Log:

2024-06-19 06:10:01.009 ERROR (MainThread) [homeassistant.util.logging] Exception in async_set_attributes when handling msg on 'phoniebox-*****/attribute/volume': '-'
Traceback (most recent call last):
  File "/config/custom_components/phoniebox/media_player.py", line 132, in async_set_attributes
    self._attr_volume_level = float(new_value) / 100.0
                              ^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: '-'

2024-06-19 06:10:01.017 ERROR (MainThread) [homeassistant.util.logging] Exception in async_set_attributes when handling msg on 'phoniebox-*****/attribute/volume': '-'
Traceback (most recent call last):
  File "/config/custom_components/phoniebox/media_player.py", line 132, in async_set_attributes
    self._attr_volume_level = float(new_value) / 100.0
                              ^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: '-'