mirror of
https://github.com/home-assistant/core.git
synced 2026-10-07 06:50:41 -04:00
Write the HomematicIP Cloud config dump in the executor (#183623)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5e3962c73f
commit
7bccc2eb4e
@@ -332,7 +332,9 @@ async def _async_dump_hap_config(service: ServiceCall) -> None:
|
||||
json_state = await entry.runtime_data.home.download_configuration_async()
|
||||
json_state = handle_config(json_state, anonymize)
|
||||
|
||||
config_file.write_text(json_state, encoding="utf8")
|
||||
await service.hass.async_add_executor_job(
|
||||
config_file.write_text, json_state, "utf8"
|
||||
)
|
||||
|
||||
|
||||
async def _async_reset_energy_counter(service: ServiceCall):
|
||||
|
||||
Reference in New Issue
Block a user