home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.74k stars 30.86k forks source link

Unexpected error fetching Touchline SL (……) data #130816

Open 4041-6A19 opened 5 hours ago

4041-6A19 commented 5 hours ago

The problem

when a thermostat is out with a dead battery. Then integration fails. Will it be possible to correct integration so that the sensors that are available work even if a sensor is not available.

Logger: homeassistant.components.touchline_sl.coordinator Source: helpers/update_coordinator.py:382 integration: Roth Touchline SL (documentation, issues) First occurred: 14:56:41 (8 occurrences) Last logged: 15:06:18

Unexpected error fetching Touchline SL (Gulvvarme hjemme) data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/touchline_sl/coordinator.py", line 46, in _async_update_data zones = await self.module.zones() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pytouchlinesl/module.py", line 100, in zones data = await self._data(refresh=refresh) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pytouchlinesl/module.py", line 81, in _data self._raw_data = await self._client.module(self.id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pytouchlinesl/client/client.py", line 106, in module return ModuleModel(**resp) ^^^^^^^^^^^^^^^^^^^ File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for ModuleModel zones -> elements -> 23 -> zone -> zoneState unexpected value; permitted: 'zoneOff', 'noAlarm', 'zoneUnregistered' (type=value_error.const; given=noCommunication; permitted=('zoneOff', 'noAlarm', 'zoneUnregistered'))

What version of Home Assistant Core has the issue?

2024.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

4041-6A19 commented 5 hours ago

Integration: Roth Touchline SL