From adb711eaa5d2b3f42f2ad51583873b53dffd6def Mon Sep 17 00:00:00 2001 From: Harrison Carter Date: Wed, 4 Nov 2026 13:36:29 -0600 Subject: [PATCH] test: gate startup-message tests on min_api_version 15 Co-Authored-By: Claude Sonnet 5.5 --- ...t_deprecated_color_temperature_profiles.lua | 6 +++--- .../zwave-lock/src/test/test_schlage_lock.lua | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/SmartThings/matter-switch/src/test/test_deprecated_color_temperature_profiles.lua b/drivers/SmartThings/matter-switch/src/test/test_deprecated_color_temperature_profiles.lua index ca1cf02c27..c2da9af1e9 100644 --- a/drivers/SmartThings/matter-switch/src/test/test_deprecated_color_temperature_profiles.lua +++ b/drivers/SmartThings/matter-switch/src/test/test_deprecated_color_temperature_profiles.lua @@ -64,7 +64,7 @@ test.register_coroutine_test( assert(not switch_utils.check_deprecated_color_temperature_profile_vendor_overrides(unlisted_pid_device), "listed VID with unlisted PID should not match") end, - { min_api_version = 14 } + { min_api_version = 15 } ) test.register_coroutine_test( @@ -83,7 +83,7 @@ test.register_coroutine_test( }) listed_device:expect_metadata_update({ provisioning_state = "PROVISIONED" }) end, - { min_api_version = 14 } + { min_api_version = 15 } ) for name, device in pairs({["unlisted VID"] = unlisted_device, ["unlisted PID"] = unlisted_pid_device}) do @@ -104,7 +104,7 @@ for name, device in pairs({["unlisted VID"] = unlisted_device, ["unlisted PID"] device:expect_metadata_update({ profile = "light-color-level" }) device:expect_metadata_update({ provisioning_state = "PROVISIONED" }) end, - { min_api_version = 14 } + { min_api_version = 15 } ) end diff --git a/drivers/SmartThings/zwave-lock/src/test/test_schlage_lock.lua b/drivers/SmartThings/zwave-lock/src/test/test_schlage_lock.lua index a69d58f218..ea86f44a35 100644 --- a/drivers/SmartThings/zwave-lock/src/test/test_schlage_lock.lua +++ b/drivers/SmartThings/zwave-lock/src/test/test_schlage_lock.lua @@ -102,7 +102,8 @@ test.register_coroutine_test( ) ) ) - end + end, + { min_api_version = 15 } ) test.register_coroutine_test( @@ -122,7 +123,8 @@ test.register_coroutine_test( test.socket.capability:__expect_send( mock_device:generate_test_message("main", capabilities.lockCredentials.maxPinCodeLen(6)) ) - end + end, + { min_api_version = 15 } ) test.register_coroutine_test( @@ -171,7 +173,8 @@ test.register_coroutine_test( test.socket.capability:__expect_send( mock_device:generate_test_message("main", capabilities.lockCredentials.maxPinCodeLen(4)) ) - end + end, + { min_api_version = 15 } ) test.register_coroutine_test( @@ -200,7 +203,8 @@ test.register_coroutine_test( { visibility = { displayed = false } }) ) ) - end + end, + { min_api_version = 15 } ) test.register_coroutine_test( @@ -226,7 +230,8 @@ test.register_coroutine_test( ) ) mock_device:expect_metadata_update({ provisioning_state = "PROVISIONED" }) - end + end, + { min_api_version = 15 } ) test.register_coroutine_test( @@ -251,7 +256,8 @@ test.register_coroutine_test( }) ) ) - end + end, + { min_api_version = 15 } ) test.register_coroutine_test(