Skip to content

Commit

Permalink
mark scure tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Nov 30, 2022
1 parent a54cf70 commit 71156df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions homeassistant/components/knx/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,11 @@ async def async_step_tunnel(self, user_input: dict | None = None) -> FlowResult:
return await self.async_step_manual_tunnel()

errors: dict = {}
tunnel_options = [str(tunnel) for tunnel in self._found_tunnels]
tunnel_options.append(OPTION_MANUAL_TUNNEL)
tunnel_options = {
str(tunnel): f"{tunnel}{' 🔐' if tunnel.tunnelling_requires_secure else ''}"
for tunnel in self._found_tunnels
}
tunnel_options |= {OPTION_MANUAL_TUNNEL: OPTION_MANUAL_TUNNEL}
fields = {vol.Required(CONF_KNX_GATEWAY): vol.In(tunnel_options)}

return self.async_show_form(
Expand Down

0 comments on commit 71156df

Please sign in to comment.