mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
use async executor
This commit is contained in:
@@ -159,7 +159,9 @@ class ViCareClimate(ViCareEntity, ClimateEntity):
|
|||||||
try:
|
try:
|
||||||
_room_temperature = None
|
_room_temperature = None
|
||||||
with suppress(PyViCareNotSupportedFeatureError):
|
with suppress(PyViCareNotSupportedFeatureError):
|
||||||
_room_temperature = self._circuit.getRoomTemperature()
|
_room_temperature = await self.hass.async_add_executor_job(
|
||||||
|
self._circuit.getRoomTemperature
|
||||||
|
)
|
||||||
|
|
||||||
_supply_temperature = None
|
_supply_temperature = None
|
||||||
with suppress(PyViCareNotSupportedFeatureError):
|
with suppress(PyViCareNotSupportedFeatureError):
|
||||||
|
Reference in New Issue
Block a user