Skip to content

Commit

Permalink
Fix missing default in integration options
Browse files Browse the repository at this point in the history
  • Loading branch information
rautesamtr committed Aug 14, 2022
1 parent 58628b4 commit ffa7aab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions custom_components/thermal_comfort/config_flow.py
Expand Up @@ -370,14 +370,24 @@ def build_schema(
vol.Required(
CONF_NAME, default=get_value(config_entry, CONF_NAME, DEFAULT_NAME)
): str,
vol.Required(CONF_TEMPERATURE_SENSOR): selector(
vol.Required(
CONF_TEMPERATURE_SENSOR,
default=get_value(
config_entry, CONF_TEMPERATURE_SENSOR, temperature_sensors[0]
),
): selector(
{
"entity": {
"include_entities": temperature_sensors,
}
}
),
vol.Required(CONF_HUMIDITY_SENSOR): selector(
vol.Required(
CONF_HUMIDITY_SENSOR,
default=get_value(
config_entry, CONF_HUMIDITY_SENSOR, humidity_sensors[0]
),
): selector(
{
"entity": {
"include_entities": humidity_sensors,
Expand Down

0 comments on commit ffa7aab

Please sign in to comment.