From cd010205b54aee5e846c858a60a2773d4a411769 Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Sun, 10 Jul 2022 17:56:26 +0200 Subject: [PATCH] Fix New update broke group sensor #412 --- custom_components/garbage_collection/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/garbage_collection/config_flow.py b/custom_components/garbage_collection/config_flow.py index 9ec4cd1..080325f 100644 --- a/custom_components/garbage_collection/config_flow.py +++ b/custom_components/garbage_collection/config_flow.py @@ -114,7 +114,9 @@ def detail_config_schema( elif options[const.CONF_FREQUENCY] in const.GROUP_FREQUENCY: # "group" options_schema[required(CONF_ENTITIES, options)] = selector.EntitySelector( - selector.EntitySelectorConfig(domain=const.DOMAIN, multiple=True), + selector.EntitySelectorConfig( + domain="sensor", integration=const.DOMAIN, multiple=True + ), ) elif options[const.CONF_FREQUENCY] not in const.BLANK_FREQUENCY: # everything else except "blank" and every-n-days