Skip to content

Commit

Permalink
Fix blocking call error due to blocking function call (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagobert authored Oct 16, 2024
1 parent af31d3e commit f261913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/roborock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
model=product.model,
)

map_client = RoborockMqttClient(user_data, device_info)
map_client = await hass.async_add_executor_job(RoborockMqttClient, user_data, device_info)

if not cloud_integration:
network = device_network.get(device_id)
Expand Down

0 comments on commit f261913

Please sign in to comment.