use async executor

This commit is contained in:
Christopher Fenner
2023-11-27 21:50:23 +01:00
parent b4553f19a1
commit 40abc10362

View File

@@ -159,7 +159,9 @@ class ViCareClimate(ViCareEntity, ClimateEntity):
try:
_room_temperature = None
with suppress(PyViCareNotSupportedFeatureError):
_room_temperature = self._circuit.getRoomTemperature()
_room_temperature = await self.hass.async_add_executor_job(
self._circuit.getRoomTemperature
)
_supply_temperature = None
with suppress(PyViCareNotSupportedFeatureError):