Skip to content

Commit ba7bba7

Browse files
committed
Merging existing options with min_api_version
1 parent b658dda commit ba7bba7

32 files changed

Lines changed: 212 additions & 212 deletions

drivers/SmartThings/matter-appliance/src/test/test_extractor_hood.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,9 @@ test.register_coroutine_test(
664664
mock_device_onoff:expect_metadata_update({ profile = "extractor-hood-wind-light" })
665665
mock_device_onoff:expect_metadata_update({ provisioning_state = "PROVISIONED" })
666666
end,
667-
{ test_init = test_init_onoff },
668667
{
669-
min_api_version = 19
668+
test_init = test_init_onoff,
669+
min_api_version = 19
670670
}
671671
)
672672

@@ -690,9 +690,9 @@ test.register_coroutine_test(
690690
clusters.OnOff.server.commands.Off(mock_device_onoff, 2)
691691
})
692692
end,
693-
{ test_init = test_init_onoff },
694693
{
695-
min_api_version = 19
694+
test_init = test_init_onoff,
695+
min_api_version = 19
696696
}
697697
)
698698

@@ -714,9 +714,9 @@ test.register_coroutine_test(
714714
mock_device_onoff:generate_test_message("light", capabilities.switch.switch.off())
715715
)
716716
end,
717-
{ test_init = test_init_onoff },
718717
{
719-
min_api_version = 19
718+
test_init = test_init_onoff,
719+
min_api_version = 19
720720
}
721721
)
722722

drivers/SmartThings/matter-appliance/src/test/test_matter_appliance_rpc_5.lua

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,9 @@ test.register_coroutine_test(
456456
{ mock_device_dishwasher.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_dishwasher, dishwasher_ep, 40 * 100, nil) }
457457
)
458458
end,
459-
{ test_init = test_init_dishwasher },
460459
{
461-
min_api_version = 19
460+
test_init = test_init_dishwasher,
461+
min_api_version = 19
462462
}
463463
)
464464

@@ -498,9 +498,9 @@ test.register_coroutine_test(
498498
{ mock_device_dishwasher.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_dishwasher, dishwasher_ep, 50 * 100, nil) }
499499
)
500500
end,
501-
{ test_init = test_init_dishwasher },
502501
{
503-
min_api_version = 19
502+
test_init = test_init_dishwasher,
503+
min_api_version = 19
504504
}
505505
)
506506

@@ -540,9 +540,9 @@ test.register_coroutine_test(
540540
{ mock_device_washer.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_washer, washer_ep, 28 * 100, nil) }
541541
)
542542
end,
543-
{ test_init = test_init_washer },
544543
{
545-
min_api_version = 19
544+
test_init = test_init_washer,
545+
min_api_version = 19
546546
}
547547
)
548548

@@ -582,9 +582,9 @@ test.register_coroutine_test(
582582
{ mock_device_washer.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_washer, washer_ep, 50 * 100, nil) }
583583
)
584584
end,
585-
{ test_init = test_init_washer },
586585
{
587-
min_api_version = 19
586+
test_init = test_init_washer,
587+
min_api_version = 19
588588
}
589589
)
590590

@@ -624,9 +624,9 @@ test.register_coroutine_test(
624624
{ mock_device_dryer.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_dryer, dryer_ep, 40 * 100, nil) }
625625
)
626626
end,
627-
{ test_init = test_init_dryer },
628627
{
629-
min_api_version = 19
628+
test_init = test_init_dryer,
629+
min_api_version = 19
630630
}
631631
)
632632

@@ -666,9 +666,9 @@ test.register_coroutine_test(
666666
{ mock_device_dryer.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_dryer, dryer_ep, 40 * 100, nil) }
667667
)
668668
end,
669-
{ test_init = test_init_dryer },
670669
{
671-
min_api_version = 19
670+
test_init = test_init_dryer,
671+
min_api_version = 19
672672
}
673673
)
674674

@@ -708,9 +708,9 @@ test.register_coroutine_test(
708708
{ mock_device_oven.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_oven, oven_tcc_one_ep, 140 * 100, nil) }
709709
)
710710
end,
711-
{ test_init = test_init_oven },
712711
{
713-
min_api_version = 19
712+
test_init = test_init_oven,
713+
min_api_version = 19
714714
}
715715
)
716716

@@ -750,9 +750,9 @@ test.register_coroutine_test(
750750
{ mock_device_oven.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_oven, oven_tcc_one_ep, 140 * 100, nil) }
751751
)
752752
end,
753-
{ test_init = test_init_oven },
754753
{
755-
min_api_version = 19
754+
test_init = test_init_oven,
755+
min_api_version = 19
756756
}
757757
)
758758

@@ -792,9 +792,9 @@ test.register_coroutine_test(
792792
{ mock_device_refrigerator.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_refrigerator, refrigerator_ep, 4 * 100, nil) }
793793
)
794794
end,
795-
{ test_init = test_init_refrigerator },
796795
{
797-
min_api_version = 19
796+
test_init = test_init_refrigerator,
797+
min_api_version = 19
798798
}
799799
)
800800

@@ -834,9 +834,9 @@ test.register_coroutine_test(
834834
{ mock_device_refrigerator.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_refrigerator, refrigerator_ep, 10 * 100, nil) }
835835
)
836836
end,
837-
{ test_init = test_init_refrigerator },
838837
{
839-
min_api_version = 19
838+
test_init = test_init_refrigerator,
839+
min_api_version = 19
840840
}
841841
)
842842

@@ -876,9 +876,9 @@ test.register_coroutine_test(
876876
{ mock_device_refrigerator.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_refrigerator, freezer_ep, -15 * 100, nil) }
877877
)
878878
end,
879-
{ test_init = test_init_refrigerator },
880879
{
881-
min_api_version = 19
880+
test_init = test_init_refrigerator,
881+
min_api_version = 19
882882
}
883883
)
884884

@@ -918,9 +918,9 @@ test.register_coroutine_test(
918918
{ mock_device_refrigerator.id, clusters.TemperatureControl.commands.SetTemperature(mock_device_refrigerator, freezer_ep, -20 * 100, nil) }
919919
)
920920
end,
921-
{ test_init = test_init_refrigerator },
922921
{
923-
min_api_version = 19
922+
test_init = test_init_refrigerator,
923+
min_api_version = 19
924924
}
925925
)
926926

drivers/SmartThings/matter-lock/src/test/test_matter_lock_battery.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ test.register_coroutine_test(
157157
"Test that profile changes to base-lock-no-battery when battery feature is not available",
158158
function()
159159
end,
160-
{ test_init = test_init_no_battery },
161160
{
162-
min_api_version = 19
161+
test_init = test_init_no_battery,
162+
min_api_version = 19
163163
}
164164
)
165165
test.run_registered_tests()

drivers/SmartThings/matter-lock/src/test/test_matter_lock_modular.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ test.register_coroutine_test(
452452
)
453453
mock_device_unlatch:expect_metadata_update({ profile = "lock-modular-embedded-unlatch", optional_component_capabilities = {{"main", {}}} })
454454
end,
455-
{ test_init = test_init_unlatch },
456455
{
457-
min_api_version = 19
456+
test_init = test_init_unlatch,
457+
min_api_version = 19
458458
}
459459
)
460460

@@ -487,9 +487,9 @@ test.register_coroutine_test(
487487
)
488488
mock_device_unlatch:expect_metadata_update({ profile = "lock-modular-embedded-unlatch", optional_component_capabilities = {{"main", {"batteryLevel"}}} })
489489
end,
490-
{ test_init = test_init_unlatch },
491490
{
492-
min_api_version = 19
491+
test_init = test_init_unlatch,
492+
min_api_version = 19
493493
}
494494
)
495495

@@ -523,9 +523,9 @@ test.register_coroutine_test(
523523
)
524524
mock_device_unlatch:expect_metadata_update({ profile = "lock-modular-embedded-unlatch", optional_component_capabilities = {{"main", {"battery"}}} })
525525
end,
526-
{ test_init = test_init_unlatch },
527526
{
528-
min_api_version = 19
527+
test_init = test_init_unlatch,
528+
min_api_version = 19
529529
}
530530
)
531531

@@ -559,9 +559,9 @@ test.register_coroutine_test(
559559
)
560560
mock_device_user_pin:expect_metadata_update({ profile = "lock-modular", optional_component_capabilities = {{"main", {"lockUsers", "lockCredentials", "battery"}}} })
561561
end,
562-
{ test_init = test_init_user_pin },
563562
{
564-
min_api_version = 19
563+
test_init = test_init_user_pin,
564+
min_api_version = 19
565565
}
566566
)
567567

@@ -596,9 +596,9 @@ test.register_coroutine_test(
596596
mock_device_user_pin_schedule_unlatch:expect_metadata_update({ profile = "lock-modular-embedded-unlatch", optional_component_capabilities = {{"main", {"lockUsers", "lockCredentials", "lockSchedules", "battery"}}} })
597597

598598
end,
599-
{ test_init = test_init_user_pin_schedule_unlatch },
600599
{
601-
min_api_version = 19
600+
test_init = test_init_user_pin_schedule_unlatch,
601+
min_api_version = 19
602602
}
603603
)
604604

@@ -662,9 +662,9 @@ test.register_coroutine_test(
662662
mock_device_modular:generate_test_message("main", capabilities.lockAlarm.supportedAlarmValues({"unableToLockTheDoor"}, {visibility = {displayed = false}}))
663663
)
664664
end,
665-
{ test_init = test_init_modular },
666665
{
667-
min_api_version = 19
666+
test_init = test_init_modular,
667+
min_api_version = 19
668668
}
669669
)
670670

drivers/SmartThings/matter-lock/src/test/test_new_matter_lock_battery.lua

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ test.register_coroutine_test(
385385
)
386386
mock_device_unlatch:expect_metadata_update({ profile = "lock-unlatch" })
387387
end,
388-
{ test_init = test_init_unlatch },
389388
{
390-
min_api_version = 19
389+
test_init = test_init_unlatch,
390+
min_api_version = 19
391391
}
392392
)
393393

@@ -417,9 +417,9 @@ test.register_coroutine_test(
417417
)
418418
mock_device_unlatch:expect_metadata_update({ profile = "lock-unlatch-batteryLevel" })
419419
end,
420-
{ test_init = test_init_unlatch },
421420
{
422-
min_api_version = 19
421+
test_init = test_init_unlatch,
422+
min_api_version = 19
423423
}
424424
)
425425

@@ -450,9 +450,9 @@ test.register_coroutine_test(
450450
)
451451
mock_device_unlatch:expect_metadata_update({ profile = "lock-unlatch-battery" })
452452
end,
453-
{ test_init = test_init_unlatch },
454453
{
455-
min_api_version = 19
454+
test_init = test_init_unlatch,
455+
min_api_version = 19
456456
}
457457
)
458458

@@ -481,9 +481,9 @@ test.register_coroutine_test(
481481
)
482482
mock_device_user_pin:expect_metadata_update({ profile = "lock-user-pin" })
483483
end,
484-
{ test_init = test_init_user_pin },
485484
{
486-
min_api_version = 19
485+
test_init = test_init_user_pin,
486+
min_api_version = 19
487487
}
488488
)
489489

@@ -513,9 +513,9 @@ test.register_coroutine_test(
513513
)
514514
mock_device_user_pin:expect_metadata_update({ profile = "lock-user-pin-batteryLevel" })
515515
end,
516-
{ test_init = test_init_user_pin },
517516
{
518-
min_api_version = 19
517+
test_init = test_init_user_pin,
518+
min_api_version = 19
519519
}
520520
)
521521

@@ -546,9 +546,9 @@ test.register_coroutine_test(
546546
)
547547
mock_device_user_pin:expect_metadata_update({ profile = "lock-user-pin-battery" })
548548
end,
549-
{ test_init = test_init_user_pin },
550549
{
551-
min_api_version = 19
550+
test_init = test_init_user_pin,
551+
min_api_version = 19
552552
}
553553
)
554554

@@ -577,9 +577,9 @@ test.register_coroutine_test(
577577
)
578578
mock_device_user_pin_schedule_unlatch:expect_metadata_update({ profile = "lock-user-pin-schedule-unlatch" })
579579
end,
580-
{ test_init = test_init_user_pin_schedule_unlatch },
581580
{
582-
min_api_version = 19
581+
test_init = test_init_user_pin_schedule_unlatch,
582+
min_api_version = 19
583583
}
584584
)
585585

@@ -609,9 +609,9 @@ test.register_coroutine_test(
609609
)
610610
mock_device_user_pin_schedule_unlatch:expect_metadata_update({ profile = "lock-user-pin-schedule-unlatch-batteryLevel" })
611611
end,
612-
{ test_init = test_init_user_pin_schedule_unlatch },
613612
{
614-
min_api_version = 19
613+
test_init = test_init_user_pin_schedule_unlatch,
614+
min_api_version = 19
615615
}
616616
)
617617

@@ -642,9 +642,9 @@ test.register_coroutine_test(
642642
)
643643
mock_device_user_pin_schedule_unlatch:expect_metadata_update({ profile = "lock-user-pin-schedule-unlatch-battery" })
644644
end,
645-
{ test_init = test_init_user_pin_schedule_unlatch },
646645
{
647-
min_api_version = 19
646+
test_init = test_init_user_pin_schedule_unlatch,
647+
min_api_version = 19
648648
}
649649
)
650650

0 commit comments

Comments
 (0)