When pool is off and can't read data take this error.
Unexpected error fetching poolstation-None data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/poolstation/init.py", line 101, in _async_update_data
await self.pool.sync_info()
File "/usr/local/lib/python3.12/site-packages/pypoolstation/init.py", line 175, in sync_info
self.percentage_electrolysis = int(info["vars"][API_SIGNS["percentage_electrolysis"]])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '---'
When pool is off and can't read data take this error.
Unexpected error fetching poolstation-None data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/poolstation/init.py", line 101, in _async_update_data await self.pool.sync_info() File "/usr/local/lib/python3.12/site-packages/pypoolstation/init.py", line 175, in sync_info self.percentage_electrolysis = int(info["vars"][API_SIGNS["percentage_electrolysis"]]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '---'