* New integration for Vodafone Station * coveragerc * Add ConfigFlow,ScannerEntity,DataUpdateCoordinator * Introduce aiovodafone lib * heavy cleanup * bump aiovodafone to v0.0.5 * add config_flow tests (100% coverage) * run pre-comimit scripts again * Remove redundant parameter SSL * rename and cleanup * cleanup and bug fix * cleanup exceptions * constructor comment review * improve test patching * move VodafoneStationDeviceInfo to dataclass * intriduce home field * dispacher cleanup * remove extra attributes (reduces state writes) * attempt to complete test flow * complete flow for test_exception_connection * add comment about unique id
17 lines
492 B
Python
17 lines
492 B
Python
"""Common stuff for Vodafone Station tests."""
|
|
from homeassistant.components.vodafone_station.const import DOMAIN
|
|
from homeassistant.const import CONF_DEVICES, CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
|
|
|
MOCK_CONFIG = {
|
|
DOMAIN: {
|
|
CONF_DEVICES: [
|
|
{
|
|
CONF_HOST: "fake_host",
|
|
CONF_USERNAME: "fake_username",
|
|
CONF_PASSWORD: "fake_password",
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
MOCK_USER_DATA = MOCK_CONFIG[DOMAIN][CONF_DEVICES][0]
|