Skip to content

Unexpected error fetching poolstation-None data #25

Description

@egtltd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions