Remove duplicate text

This commit is contained in:
Simon Lamon 2025-05-28 21:45:22 +02:00 committed by GitHub
parent e12118d762
commit c1787f7968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,18 +110,10 @@ class MyConfigFlow(ConfigFlow, domain=DOMAIN):
) )
``` ```
### Note for OAuth2-Based Config Flows
For integrations that utilize OAuth2 and extend config_entry_oauth2_flow.AbstractOAuth2FlowHandler instead of ConfigFlow, it is not necessary to implement discovery-related steps such as async_step_zeroconf or async_step_discovery_confirm. The AbstractOAuth2FlowHandler base class includes built-in support for Home Assistant's discovery mechanisms and will automatically initiate the configuration flow when a compatible device or service is detected. Developers need only declare the relevant discovery identifiers in manifest.json and implement the async_oauth_create_entry method to complete the configuration.
Certainly! Here's a revised version that refers more generally to Home Assistant's discovery mechanisms:
### Note for OAuth2-Based Config Flows ### Note for OAuth2-Based Config Flows
For integrations that utilize OAuth2 and extend `config_entry_oauth2_flow.AbstractOAuth2FlowHandler` instead of `ConfigFlow`, it is not necessary to implement discovery-related steps such as `async_step_zeroconf` or `async_step_discovery_confirm`. The `AbstractOAuth2FlowHandler` base class includes built-in support for Home Assistant's discovery mechanisms and will automatically initiate the configuration flow when a compatible device or service is detected. Developers need only declare the relevant discovery identifiers in `manifest.json` and implement the `async_oauth_create_entry` method to complete the configuration. For integrations that utilize OAuth2 and extend `config_entry_oauth2_flow.AbstractOAuth2FlowHandler` instead of `ConfigFlow`, it is not necessary to implement discovery-related steps such as `async_step_zeroconf` or `async_step_discovery_confirm`. The `AbstractOAuth2FlowHandler` base class includes built-in support for Home Assistant's discovery mechanisms and will automatically initiate the configuration flow when a compatible device or service is detected. Developers need only declare the relevant discovery identifiers in `manifest.json` and implement the `async_oauth_create_entry` method to complete the configuration.
## Additional resources ## Additional resources
To learn more information about config flows, checkout the [config flow documentation](/docs/config_entries_config_flow_handler). To learn more information about config flows, checkout the [config flow documentation](/docs/config_entries_config_flow_handler).