From 7b2cad388e03e31a04f97096bd5359c39d774e48 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Fri, 7 Oct 2022 01:22:15 +0200 Subject: [PATCH] Show all valid heatpump selections (#79756) Iterate over the keys of the member dunder --- homeassistant/components/nibe_heatpump/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/nibe_heatpump/config_flow.py b/homeassistant/components/nibe_heatpump/config_flow.py index f8e4974b79b..ba3325d9daf 100644 --- a/homeassistant/components/nibe_heatpump/config_flow.py +++ b/homeassistant/components/nibe_heatpump/config_flow.py @@ -29,7 +29,7 @@ from .const import ( STEP_USER_DATA_SCHEMA = vol.Schema( { - vol.Required(CONF_MODEL): vol.In([e.name for e in Model]), + vol.Required(CONF_MODEL): vol.In(list(Model.__members__)), vol.Required(CONF_IP_ADDRESS): str, vol.Required(CONF_LISTENING_PORT, default=9999): cv.port, vol.Required(CONF_REMOTE_READ_PORT, default=9999): cv.port,