mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 09:38:21 +00:00
Remove advanced mode from group all
option. (#149626)
This commit is contained in:
parent
aaec243bf4
commit
9f45801409
@ -141,9 +141,7 @@ async def light_switch_options_schema(
|
|||||||
"""Generate options schema."""
|
"""Generate options schema."""
|
||||||
return (await basic_group_options_schema(domain, handler)).extend(
|
return (await basic_group_options_schema(domain, handler)).extend(
|
||||||
{
|
{
|
||||||
vol.Required(
|
vol.Required(CONF_ALL, default=False): selector.BooleanSelector(),
|
||||||
CONF_ALL, default=False, description={"advanced": True}
|
|
||||||
): selector.BooleanSelector(),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -315,11 +315,11 @@ async def test_options(
|
|||||||
("group_type", "extra_options", "extra_options_after", "advanced"),
|
("group_type", "extra_options", "extra_options_after", "advanced"),
|
||||||
[
|
[
|
||||||
("light", {"all": False}, {"all": False}, False),
|
("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": False}, {"all": False}, True),
|
||||||
("light", {"all": True}, {"all": False}, True),
|
("light", {"all": True}, {"all": False}, True),
|
||||||
("switch", {"all": False}, {"all": False}, False),
|
("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": False}, {"all": False}, True),
|
||||||
("switch", {"all": True}, {"all": False}, True),
|
("switch", {"all": True}, {"all": False}, True),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user