cibernox / homeassistant-poolstation

HomeAssistant custom component for integrating the Poolstation platform.
MIT License
9 stars 4 forks source link

Unexpected error fetching poolstation-None data #25

Open egtltd opened 1 week ago

egtltd commented 1 week ago

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: '---'

egtltd commented 1 week ago

I take the same message when pool is on