Add digital loggers as a Belkin supported brand (#72515)
This commit is contained in:
parent
a8a033681f
commit
5c5fd746fd
4 changed files with 41 additions and 3 deletions
|
@ -97,6 +97,15 @@ def pywemo_device_fixture(pywemo_registry, pywemo_model):
|
|||
yield pywemo_device
|
||||
|
||||
|
||||
@pytest.fixture(name="pywemo_dli_device")
|
||||
def pywemo_dli_device_fixture(pywemo_registry, pywemo_model):
|
||||
"""Fixture for Digital Loggers emulated instances."""
|
||||
with create_pywemo_device(pywemo_registry, pywemo_model) as pywemo_dli_device:
|
||||
pywemo_dli_device.model_name = "DLI emulated Belkin Socket"
|
||||
pywemo_dli_device.serialnumber = "1234567891"
|
||||
yield pywemo_dli_device
|
||||
|
||||
|
||||
@pytest.fixture(name="wemo_entity_suffix")
|
||||
def wemo_entity_suffix_fixture():
|
||||
"""Fixture to select a specific entity for wemo_entity."""
|
||||
|
@ -129,3 +138,9 @@ async def async_create_wemo_entity(hass, pywemo_device, wemo_entity_suffix):
|
|||
async def async_wemo_entity_fixture(hass, pywemo_device, wemo_entity_suffix):
|
||||
"""Fixture for a Wemo entity in hass."""
|
||||
return await async_create_wemo_entity(hass, pywemo_device, wemo_entity_suffix)
|
||||
|
||||
|
||||
@pytest.fixture(name="wemo_dli_entity")
|
||||
async def async_wemo_dli_entity_fixture(hass, pywemo_dli_device, wemo_entity_suffix):
|
||||
"""Fixture for a Wemo entity in hass."""
|
||||
return await async_create_wemo_entity(hass, pywemo_dli_device, wemo_entity_suffix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue