diff --git a/tests/components/vesync/conftest.py b/tests/components/vesync/conftest.py index 3ff5275ce4a..e8603b37170 100644 --- a/tests/components/vesync/conftest.py +++ b/tests/components/vesync/conftest.py @@ -144,6 +144,7 @@ def fan_fixture(): cid="fan", device_type="fan", device_name="Test Fan", + product_type="fan", device_status="on", modes=[], connection_status="online", @@ -157,6 +158,7 @@ def bulb_fixture(): """Create a mock VeSync bulb fixture.""" return Mock( VeSyncBulb, + product_type="bulb", cid="bulb", device_name="Test Bulb", ) @@ -167,6 +169,7 @@ def switch_fixture(): """Create a mock VeSync switch fixture.""" return Mock( VeSyncSwitch, + product_type="switch", is_dimmable=Mock(return_value=False), ) @@ -176,6 +179,7 @@ def dimmable_switch_fixture(): """Create a mock VeSync switch fixture.""" return Mock( VeSyncSwitch, + product_type="switch", is_dimmable=Mock(return_value=True), ) @@ -186,6 +190,7 @@ def outlet_fixture(): return Mock( VeSyncOutlet, cid="outlet", + product_type="outlet", device_name="Test Outlet", ) @@ -203,6 +208,7 @@ def humidifier_fixture(): }, features=[HumidifierFeatures.NIGHTLIGHT], device_type="Classic200S", + product_type="humidifier", device_name="Humidifier 200s", device_status="on", mist_modes=["auto", "manual"], @@ -239,6 +245,7 @@ def humidifier_300s_fixture(): }, features=[HumidifierFeatures.NIGHTLIGHT], device_type="Classic300S", + product_type="humidifier", device_name="Humidifier 300s", device_status="on", mist_modes=["auto", "manual"], diff --git a/tests/components/vesync/snapshots/test_diagnostics.ambr b/tests/components/vesync/snapshots/test_diagnostics.ambr index e6eb53ac54e..7062bf25764 100644 --- a/tests/components/vesync/snapshots/test_diagnostics.ambr +++ b/tests/components/vesync/snapshots/test_diagnostics.ambr @@ -84,7 +84,7 @@ 'mock_calls': list([ ]), 'pid': 'Method', - 'product_type': 'Method', + 'product_type': 'humidifier', 'request_keys': 'Method', 'reset_mock': 'Method', 'return_value': 'Method', @@ -514,7 +514,7 @@ ]), 'normal_mode': 'Method', 'pid': 'Method', - 'product_type': 'Method', + 'product_type': 'fan', 'request_keys': 'Method', 'reset_mock': 'Method', 'return_value': 'Method',