feat: switch conftest + golden tests to batch-first resource loading
conftest: _resources_from_dump() prefers /device/0 batch reps; falls
back to flat resources dict. Fixes _parse_device0_batch to include
stub reps (rep={href:...}) as {} so capabilities still bind on
resources with no current data (e.g. /alarms/vs/0 when no alarm active).
test_golden_regression: _new_state_and_uids now uses by_type.for_device
to select per-device-type capabilities + pattern caps.
This commit is contained in:
1 parent
2b22673210
commit
d4ff29d797
6 files changed
+55
-15
No files matched your search
+1
-1
@@ -54,4 +54,4 @@
|
||||
"samsung_dishwasher_stop",
|
||||
"samsung_dishwasher_water_liters"
|
||||
]
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -59,4 +59,4 @@
|
||||
"samsung_refrigerator_rapid_fridge",
|
||||
"samsung_refrigerator_sabbath_mode"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user