From b59ddd3d98e41a89b62609cb820c07c9d4e19cee Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Thu, 17 Oct 2024 12:23:16 -0500 Subject: [PATCH] tests: Update cal date check to pass on older devices --- tests/component/system/test_device_properties.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/component/system/test_device_properties.py b/tests/component/system/test_device_properties.py index ba1f1d23d..0448c8916 100644 --- a/tests/component/system/test_device_properties.py +++ b/tests/component/system/test_device_properties.py @@ -116,7 +116,7 @@ def test___ext_cal_last_date_and_time___no_errors(real_x_series_device: Device) last_date_and_time = real_x_series_device.ext_cal_last_date_and_time assert type(last_date_and_time) is datetime - assert last_date_and_time.year > 2009 + assert last_date_and_time.year >= 2009 assert last_date_and_time.month >= 1 assert last_date_and_time.day > 0 assert last_date_and_time.hour >= 0 @@ -127,7 +127,7 @@ def test___self_cal_last_date_and_time___no_errors(real_x_series_device: Device) last_date_and_time = real_x_series_device.self_cal_last_date_and_time assert type(last_date_and_time) is datetime - assert last_date_and_time.year > 2009 + assert last_date_and_time.year >= 2009 assert last_date_and_time.month >= 1 assert last_date_and_time.day > 0 assert last_date_and_time.hour >= 0