Add digital loggers as a Belkin supported brand (#72515)

This commit is contained in:
Robert Hillis 2022-06-22 16:38:45 -04:00 committed by GitHub
parent a8a033681f
commit 5c5fd746fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 3 deletions

View file

@ -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)