home-assistant-myuplink
home-assistant-myuplink copied to clipboard
Not refreshing - Crashing instead
I set the refresh interval to 60 (s)... on load it get's the value from myuplink but then on refresh it's crashing:
Logger: homeassistant Source: custom_components/myuplink/number.py:52 Integration: myUplink (documentation, issues) First occurred: 2:38:23 PM (13 occurrences) Last logged: 2:53:33 PM
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 412, 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/myuplink/entity.py", line 93, in _handle_coordinator_update self._update_from_parameter(parameter) File "/config/custom_components/myuplink/number.py", line 52, in _update_from_parameter self._attr_native_max_value = parameter.max_value * parameter.scale_value ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'