Skip to content

Commit 507d26f

Browse files
Enhance config flow and tests for calendar_event integration
- Update comparison method selector to use dropdown mode in config flow. - Modify binary sensor tests to include various matching criteria. - Adjust setup tests to ensure correct calendar entity registration.
1 parent 42cfe3a commit 507d26f

File tree

4 files changed

+303
-318
lines changed

4 files changed

+303
-318
lines changed

custom_components/calendar_event/config_flow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
CONF_COMPARISON_METHOD, default="contains"
3232
): selector.SelectSelector(
3333
selector.SelectSelectorConfig(
34-
options=_MATCHING_CRITERIA, translation_key=CONF_COMPARISON_METHOD
34+
options=_MATCHING_CRITERIA,
35+
mode="dropdown",
36+
translation_key=CONF_COMPARISON_METHOD,
3537
),
3638
),
3739
}

images/screenshot.png

-7.51 KB
Loading

0 commit comments

Comments
 (0)