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:
parent
3348f4f6d1
commit
3f29c234b8
17 changed files with 435 additions and 146 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue