From 39bfd5dfbb280c9b588f5a3464a4253f3e133a8d Mon Sep 17 00:00:00 2001 From: flavien Date: Sun, 27 Apr 2025 18:14:10 +0200 Subject: [PATCH] synthax error --- config_flow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config_flow.py b/config_flow.py index d350ca7..4222a7b 100644 --- a/config_flow.py +++ b/config_flow.py @@ -49,10 +49,14 @@ class LinkyTariffConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): self._abort_if_unique_id_configured() return self.async_create_entry(title="Linky Tariff", data=user_input) + device_options = { + ieee: name for ieee, name in devices + } + return self.async_show_form( step_id="user", data_schema=vol.Schema({ - vol.Required(CONF_IEEE): vol.In(dict(devices)), + vol.Required(CONF_IEEE): vol.In(device_options), vol.Optional( CONF_POLL_INTERVAL, default=DEFAULT_POLL_INTERVAL