From 71156dff933a049222ef4f02837c077aa2cdd7f6 Mon Sep 17 00:00:00 2001 From: farmio Date: Mon, 28 Nov 2022 20:00:23 +0100 Subject: [PATCH] mark scure tunnels --- homeassistant/components/knx/config_flow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/knx/config_flow.py b/homeassistant/components/knx/config_flow.py index b24044dfd13339..f7ef0d943a9fff 100644 --- a/homeassistant/components/knx/config_flow.py +++ b/homeassistant/components/knx/config_flow.py @@ -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(