Add ring switch platform (#25612)
* Add in a switch platform to ring. * Changes following code review * remove tests for now * remove the request to call update * support the new type of test * update after running black * fix comment * fixes following code review * Remove ring cache file * patch out io code * Move the patches to within a fixture * missing period
This commit is contained in:
1 parent
7ff7c7b9f5
commit
9e8df936ac
7 files changed
+745
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
"""Common methods used across the tests for ring devices."""
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, CONF_SCAN_INTERVAL
|
||||
from homeassistant.components.ring import DOMAIN
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
|
||||
async def setup_platform(hass, platform):
|
||||
"""Set up the ring platform and prerequisites."""
|
||||
config = {
|
||||
DOMAIN: {CONF_USERNAME: "foo", CONF_PASSWORD: "bar", CONF_SCAN_INTERVAL: 1000},
|
||||
platform: {"platform": DOMAIN},
|
||||
}
|
||||
assert await async_setup_component(hass, platform, config)
|
||||
await hass.async_block_till_done()
|
||||
Reference in new issue
Block a user