Ensure lutron_caseta is only discovered once (#45792)

This commit is contained in:
J. Nick Koston 2021-01-31 10:38:08 -10:00 committed by GitHub
parent 868e530cbb
commit 8be357ff4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,9 @@ class LutronCasetaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
}
return await self.async_step_link()
async_step_homekit = async_step_zeroconf
async def async_step_homekit(self, discovery_info):
"""Handle a flow initialized by homekit discovery."""
return await self.async_step_zeroconf(discovery_info)
async def async_step_link(self, user_input=None):
"""Handle pairing with the hub."""