Add support for State type to scenes methods like goto, enter, get

Calm down MyPy
This commit is contained in:
andrew000 2025-04-28 15:00:10 +03:00
parent 482629ac18
commit f656cccb65
No known key found for this signature in database
GPG key ID: D332A306AAA27181
2 changed files with 17 additions and 14 deletions

View file

@ -1490,7 +1490,9 @@ class TestSceneRegistry:
registry = SceneRegistry(router, register_on_add)
registry.add(MyScene)
with pytest.raises(SceneException, match="Scene must be a subclass of Scene or a string"):
with pytest.raises(
SceneException, match="Scene must be a subclass of Scene, State or a string"
):
registry.get(MyScene)
def test_scene_registry_get_scene_not_registered(self):