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:
Yanze (David) Wu
2026-09-29 22:33:11 +02:00
committed by GitHub
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):