Handle exception in ViCare integration (#111128)

This commit is contained in:
Christopher Fenner
2024-03-04 10:10:59 +01:00
committed by GitHub
parent ac416f7e07
commit faef5da1c5

View File

@@ -205,7 +205,8 @@ class ViCareClimate(ViCareEntity, ClimateEntity):
"heating_curve_shift"
] = self._circuit.getHeatingCurveShift()
self._attributes["vicare_modes"] = self._circuit.getModes()
with suppress(PyViCareNotSupportedFeatureError):
self._attributes["vicare_modes"] = self._circuit.getModes()
self._current_action = False
# Update the specific device attributes