Add config flow to canary (#40055)
* Create config_flow.py * Update config_flow.py * work on config flow * Update test_config_flow.py * Update __init__.py * Update camera.py * Update test_config_flow.py * Update test_config_flow.py * Update config_flow.py * Update conftest.py * Update test_config_flow.py * Update test_init.py * Update test_init.py * Apply suggestions from code review * Update camera.py * Update test_init.py * Update camera.py * Update __init__.py * Update test_init.py * Update test_init.py * Update __init__.py * Update __init__.py * Apply suggestions from code review * Update __init__.py * Update test_init.py * Update __init__.py * Update __init__.py * Update config_flow.py * Update test_config_flow.py * Update config_flow.py * Update config_flow.py
This commit is contained in:
parent
94dfb66824
commit
f563068ce6
15 changed files with 612 additions and 83 deletions
|
@ -42,7 +42,7 @@ async def test_sensors_pro(hass, canary) -> None:
|
|||
]
|
||||
|
||||
config = {DOMAIN: {"username": "test-username", "password": "test-password"}}
|
||||
with patch("homeassistant.components.canary.CANARY_COMPONENTS", ["sensor"]):
|
||||
with patch("homeassistant.components.canary.PLATFORMS", ["sensor"]):
|
||||
assert await async_setup_component(hass, DOMAIN, config)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
@ -101,7 +101,7 @@ async def test_sensors_attributes_pro(hass, canary) -> None:
|
|||
]
|
||||
|
||||
config = {DOMAIN: {"username": "test-username", "password": "test-password"}}
|
||||
with patch("homeassistant.components.canary.CANARY_COMPONENTS", ["sensor"]):
|
||||
with patch("homeassistant.components.canary.PLATFORMS", ["sensor"]):
|
||||
assert await async_setup_component(hass, DOMAIN, config)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
@ -155,7 +155,7 @@ async def test_sensors_flex(hass, canary) -> None:
|
|||
]
|
||||
|
||||
config = {DOMAIN: {"username": "test-username", "password": "test-password"}}
|
||||
with patch("homeassistant.components.canary.CANARY_COMPONENTS", ["sensor"]):
|
||||
with patch("homeassistant.components.canary.PLATFORMS", ["sensor"]):
|
||||
assert await async_setup_component(hass, DOMAIN, config)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue