Skip to content

Commit 8c4ff35

Browse files
committed
Use async_add_executor_job instead of async_add_job
1 parent 156edab commit 8c4ff35

File tree

1 file changed

+1
-1
lines changed
  • custom_components/xiaomi_miio_airconditioningcompanion

1 file changed

+1
-1
lines changed

custom_components/xiaomi_miio_airconditioningcompanion/climate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ async def _try_command(self, mask_error, func, *args, **kwargs):
315315
from miio import DeviceException
316316

317317
try:
318-
result = await self.hass.async_add_job(partial(func, *args, **kwargs))
318+
result = await self.hass.async_add_executor_job(partial(func, *args, **kwargs))
319319

320320
_LOGGER.debug("Response received: %s", result)
321321

0 commit comments

Comments
 (0)