File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1010from tests import mock_data
1111
1212V1_DEVICES = {
13- k : HomeDataDevice .from_dict (device )
14- for k , device in mock_data .DEVICES .items ()
15- if device .get ("pv" ) == "1.0"
13+ k : HomeDataDevice .from_dict (device ) for k , device in mock_data .DEVICES .items () if device .get ("pv" ) == "1.0"
1614}
1715
1816
@@ -26,12 +24,10 @@ async def test_is_attribute_supported(
2624 device : RoborockDevice ,
2725 snapshot : SnapshotAssertion ,
2826) -> None :
29- """Test successfully getting multi maps list ."""
27+ """Test if a field is supported ."""
3028 assert device .v1_properties is not None
3129 assert device .v1_properties .device_features is not None
3230 device_features_trait = device .v1_properties .device_features
3331
34- is_supported : list [tuple [str , bool ]] = {
35- field .value : device_features_trait .is_field_supported (StatusTrait , field ) for field in StatusField
36- }
32+ is_supported = {field .value : device_features_trait .is_field_supported (StatusTrait , field ) for field in StatusField }
3733 assert is_supported == snapshot
You can’t perform that action at this time.
0 commit comments