Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/components/vesync/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
)
Expand All @@ -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),
)

Expand All @@ -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),
)

Expand All @@ -186,6 +190,7 @@ def outlet_fixture():
return Mock(
VeSyncOutlet,
cid="outlet",
product_type="outlet",
device_name="Test Outlet",
)

Expand All @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions tests/components/vesync/snapshots/test_diagnostics.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
'mock_calls': list([
]),
'pid': 'Method',
'product_type': 'Method',
'product_type': 'humidifier',
'request_keys': 'Method',
'reset_mock': 'Method',
'return_value': 'Method',
Expand Down Expand Up @@ -514,7 +514,7 @@
]),
'normal_mode': 'Method',
'pid': 'Method',
'product_type': 'Method',
'product_type': 'fan',
'request_keys': 'Method',
'reset_mock': 'Method',
'return_value': 'Method',
Expand Down