Allow discovery flows to be discovered via zeroconf/ssdp (#24199)
This commit is contained in:
parent
6fcd56c462
commit
f32d1c0dea
2 changed files with 10 additions and 5 deletions
|
@ -81,6 +81,9 @@ class DiscoveryFlowHandler(config_entries.ConfigFlow):
|
|||
|
||||
return await self.async_step_confirm()
|
||||
|
||||
async_step_zeroconf = async_step_discovery
|
||||
async_step_ssdp = async_step_discovery
|
||||
|
||||
async def async_step_import(self, _):
|
||||
"""Handle a flow initialized by import."""
|
||||
if self._async_in_progress() or self._async_current_entries():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue