Remove advanced mode from group all option. (#149626)

This commit is contained in:
karwosts 2025-07-29 11:03:27 -07:00 committed by GitHub
parent aaec243bf4
commit 9f45801409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -141,9 +141,7 @@ async def light_switch_options_schema(
"""Generate options schema."""
return (await basic_group_options_schema(domain, handler)).extend(
{
vol.Required(
CONF_ALL, default=False, description={"advanced": True}
): selector.BooleanSelector(),
vol.Required(CONF_ALL, default=False): selector.BooleanSelector(),
}
)

View File

@ -315,11 +315,11 @@ async def test_options(
("group_type", "extra_options", "extra_options_after", "advanced"),
[
("light", {"all": False}, {"all": False}, False),
("light", {"all": True}, {"all": True}, False),
("light", {"all": True}, {"all": False}, False),
("light", {"all": False}, {"all": False}, True),
("light", {"all": True}, {"all": False}, True),
("switch", {"all": False}, {"all": False}, False),
("switch", {"all": True}, {"all": True}, False),
("switch", {"all": True}, {"all": False}, False),
("switch", {"all": False}, {"all": False}, True),
("switch", {"all": True}, {"all": False}, True),
],