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

Give scenes last activated state (#62673)

This commit is contained in:
Franck Nijhof
2022-01-07 19:02:32 +01:00
committed by GitHub
parent e03283292b
commit 3f7275a9c7
7 changed files with 93 additions and 27 deletions

View File

@@ -800,7 +800,7 @@ async def test_scene_scene(hass):
assert helpers.get_google_type(scene.DOMAIN, None) is not None
assert trait.SceneTrait.supported(scene.DOMAIN, 0, None, None)
trt = trait.SceneTrait(hass, State("scene.bla", scene.STATE), BASIC_CONFIG)
trt = trait.SceneTrait(hass, State("scene.bla", STATE_UNKNOWN), BASIC_CONFIG)
assert trt.sync_attributes() == {}
assert trt.query_attributes() == {}
assert trt.can_execute(trait.COMMAND_ACTIVATE_SCENE, {})