update tests: new scene API

This commit is contained in:
John McCardle 2026-01-03 10:59:52 -05:00
commit 838da4571d
142 changed files with 616 additions and 601 deletions

View file

@ -11,13 +11,13 @@ print(f"Automation available: {'automation' in dir(mcrfpy)}")
# Try to understand the scene state
print("\nCreating and checking scene...")
mcrfpy.createScene("debug_scene")
mcrfpy.setScene("debug_scene")
current = mcrfpy.currentScene()
debug_scene = mcrfpy.Scene("debug_scene")
debug_scene.activate()
current = (mcrfpy.current_scene.name if mcrfpy.current_scene else None)
print(f"Current scene: {current}")
# Get UI collection
ui = mcrfpy.sceneUI("debug_scene")
ui = debug_scene.children
print(f"UI collection type: {type(ui)}")
print(f"Initial UI elements: {len(ui)}")