1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Use Cloudhooks for OwnTracks (#23847)

* Use Cloudhooks for OwnTracks

* Update config_flow.py

* Update config_flow.py
This commit is contained in:
Paulus Schoutsen
2019-05-14 11:59:11 +02:00
committed by GitHub
parent 19cfa8cf22
commit 6fa8556033
4 changed files with 101 additions and 18 deletions

View File

@@ -160,15 +160,3 @@ def test_returns_error_missing_device(mock_client):
json = yield from resp.json()
assert json == []
async def test_config_flow_import(hass):
"""Test that we automatically create a config flow."""
assert not hass.config_entries.async_entries('owntracks')
assert await async_setup_component(hass, 'owntracks', {
'owntracks': {
}
})
await hass.async_block_till_done()
assert hass.config_entries.async_entries('owntracks')