Reauth 和 reconfigure flows 必须关联到一个 config entry
在没有关联到 config entry 的情况下启动 reauth 或 reconfigure flow 已被 deprecated,并将在 2025.12 开始失效。
自定义集成应更新为使用 entry.async_start_reauth(hass) 辅助函数来触发 reauth flow。
旧的错误代码:
自定义集成还可以在初始化阶段,或在 data update coordinator 的 update 方法内抛出 ConfigEntryAuthFailed 异常。
启动 reconfigure flow 只能由前端完成,自定义集成不应需要对这些 flow 做任何更改。
更多详情请参阅 reconfigure 和 reauthentication 文档。

