mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 12:29:55 +00:00
Improve UniFi config flow tests and add options flow test (#27340)
This commit is contained in:
committed by
Paulus Schoutsen
parent
7f20210e93
commit
d345b58ce6
@@ -150,12 +150,6 @@ class UnifiFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
self.desc = next(iter(self.sites.values()))["desc"]
|
||||
return await self.async_step_site(user_input={})
|
||||
|
||||
if self.desc is not None:
|
||||
for site in self.sites.values():
|
||||
if self.desc == site["name"]:
|
||||
self.desc = site["desc"]
|
||||
return await self.async_step_site(user_input={})
|
||||
|
||||
sites = []
|
||||
for site in self.sites.values():
|
||||
sites.append(site["desc"])
|
||||
|
||||
Reference in New Issue
Block a user