1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Clarify duration selector (#68731)

This commit is contained in:
Erik Montnemery
2022-03-28 09:28:32 +02:00
committed by GitHub
parent cfc8b5fee7
commit 1746677b61
2 changed files with 7 additions and 2 deletions

View File

@@ -406,12 +406,15 @@ def test_attribute_selector_schema(schema, valid_selections, invalid_selections)
(
(
{},
({"seconds": 10},),
(
{"seconds": 10},
{"days": 10}, # Days is allowed also if `enable_day` is not set
),
(None, {}),
),
(
{"enable_day": True},
({"seconds": 10},),
({"seconds": 10}, {"days": 10}),
(None, {}),
),
),