Allow discovery flows to be discovered via zeroconf/ssdp (#24199)

This commit is contained in:
Paulus Schoutsen 2019-05-30 14:08:05 -07:00 committed by GitHub
parent 6fcd56c462
commit f32d1c0dea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -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():