mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
use async executor
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user