1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Show all valid heatpump selections (#79756)

Iterate over the keys of the member dunder
This commit is contained in:
Joakim Plate 2022-10-07 01:22:15 +02:00 committed by GitHub
parent eb19927df6
commit 7b2cad388e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,