Skip to content

Commit 9eabdb7

Browse files
committed
Filter entity selector to temperature sensors only
1 parent 3720222 commit 9eabdb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎custom_components/econext/config_flow.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None)
108108
CONF_THERMOSTAT_ENTITY,
109109
default=current_options.get(CONF_THERMOSTAT_ENTITY, ""),
110110
): EntitySelector(
111-
EntitySelectorConfig(domain="sensor"),
111+
EntitySelectorConfig(domain="sensor", device_class="temperature"),
112112
),
113113
}
114114
),
@@ -148,7 +148,7 @@ async def async_step_init(self, user_input: dict[str, Any] | None = None) -> Con
148148
CONF_THERMOSTAT_ENTITY,
149149
default=current.get(CONF_THERMOSTAT_ENTITY, ""),
150150
): EntitySelector(
151-
EntitySelectorConfig(domain="sensor"),
151+
EntitySelectorConfig(domain="sensor", device_class="temperature"),
152152
),
153153
}
154154
),

0 commit comments

Comments
 (0)