Add Ring config flow (#30564)

* Add Ring config flow

* Address comments + migrate platforms to config entry

* Migrate camera too

* Address comments

* Fix order config flows

* setup -> async_setup
This commit is contained in:
Paulus Schoutsen 2020-01-10 21:35:31 +01:00 committed by GitHub
parent 3348f4f6d1
commit 3f29c234b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 435 additions and 146 deletions

View file

@ -1,4 +1,5 @@
"""The tests for the Ring component."""
from asyncio import run_coroutine_threadsafe
from copy import deepcopy
from datetime import timedelta
import os
@ -59,7 +60,10 @@ class TestRing(unittest.TestCase):
"https://api.ring.com/clients_api/doorbots/987652/health",
text=load_fixture("ring_doorboot_health_attrs.json"),
)
response = ring.setup(self.hass, self.config)
response = run_coroutine_threadsafe(
ring.async_setup(self.hass, self.config), self.hass.loop
).result()
assert response
@requests_mock.Mocker()