Bump screenlogicpy to v0.9.0 (#92475)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
8de3945bd4
commit
092580a3ed
28 changed files with 3821 additions and 652 deletions
27
tests/components/screenlogic/conftest.py
Normal file
27
tests/components/screenlogic/conftest.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
"""Setup fixtures for ScreenLogic integration tests."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.screenlogic import DOMAIN
|
||||
from homeassistant.const import CONF_IP_ADDRESS, CONF_PORT, CONF_SCAN_INTERVAL
|
||||
|
||||
from . import MOCK_ADAPTER_IP, MOCK_ADAPTER_MAC, MOCK_ADAPTER_NAME, MOCK_ADAPTER_PORT
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_config_entry() -> MockConfigEntry:
|
||||
"""Return a mocked config entry."""
|
||||
return MockConfigEntry(
|
||||
title=MOCK_ADAPTER_NAME,
|
||||
domain=DOMAIN,
|
||||
data={
|
||||
CONF_IP_ADDRESS: MOCK_ADAPTER_IP,
|
||||
CONF_PORT: MOCK_ADAPTER_PORT,
|
||||
},
|
||||
options={
|
||||
CONF_SCAN_INTERVAL: 30,
|
||||
},
|
||||
unique_id=MOCK_ADAPTER_MAC,
|
||||
entry_id="screenlogictest",
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue