[ld2412] Send the output pin level when its select changes

This commit is contained in:
J. Nick Koston committed 2026-10-21 17:16:32 -10:00
1 parent 3ae5e1dfad
commit 30ce4f4645
1 file changed
+4 -1
+4 -1
View File
@@ -42,7 +42,7 @@ CONFIG_SCHEMA = {
icon=ICON_LIGHTBULB,
),
cv.Optional(CONF_OUT_PIN_LEVEL): select.select_schema(
LightOutControlSelect,
select.ApplySelect,
entity_category=ENTITY_CATEGORY_CONFIG,
icon=ICON_SCALE,
),
@@ -76,8 +76,11 @@ async def to_code(config: ConfigType) -> None:
hub.set_light_function_select,
options=["off", "below", "above"],
)
# The pin level travels in the basic configuration command, not the light control one
await selects(
CONF_OUT_PIN_LEVEL,
hub.set_out_pin_level_select,
options=["low", "high"],
apply="set_basic_config()",
publish="before",
)