mirror of
https://github.com/home-assistant/core.git
synced 2026-05-03 19:41:15 +02:00
Update a roborock blocking call to be fully async (#124266)
Remove a blocking call in roborock
This commit is contained in:
@@ -168,7 +168,9 @@ async def setup_device_v1(
|
||||
home_data_rooms: list[HomeDataRoom],
|
||||
) -> RoborockDataUpdateCoordinator | None:
|
||||
"""Set up a device Coordinator."""
|
||||
mqtt_client = RoborockMqttClientV1(user_data, DeviceData(device, product_info.name))
|
||||
mqtt_client = await hass.async_add_executor_job(
|
||||
RoborockMqttClientV1, user_data, DeviceData(device, product_info.name)
|
||||
)
|
||||
try:
|
||||
networking = await mqtt_client.get_networking()
|
||||
if networking is None:
|
||||
|
||||
Reference in New Issue
Block a user