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:
Chris Talkington 2020-09-18 23:22:19 -05:00 committed by GitHub
parent 94dfb66824
commit f563068ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 612 additions and 83 deletions

View file

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