mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 07:05:48 +01:00
Add Device Type to Vesync Test Fixtures (#161585)
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user