mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Update a roborock blocking call to be fully async (#124266)
Remove a blocking call in roborock
This commit is contained in:
parent
d3293336b1
commit
d18e81f932
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user