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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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, {})