Bump Home Assistant Cloud 0.12 (#23159)
* Home Assistant Cloud 0.12 * Fix raising error * Fix requirements * Fix lint
This commit is contained in:
1 parent
0b7e62f737
commit
073f947ca4
7 files changed
+26
-7
No files matched your search
@@ -189,7 +189,12 @@ async def async_setup(hass, config):
|
||||
hass.helpers.service.async_register_admin_service(
|
||||
DOMAIN, SERVICE_REMOTE_DISCONNECT, _service_handler)
|
||||
|
||||
async def _on_connect():
|
||||
"""Discover RemoteUI binary sensor."""
|
||||
hass.async_create_task(hass.helpers.discovery.async_load_platform(
|
||||
'binary_sensor', DOMAIN, {}, config))
|
||||
|
||||
cloud.iot.register_on_connect(_on_connect)
|
||||
|
||||
await http_api.async_setup(hass)
|
||||
hass.async_create_task(hass.helpers.discovery.async_load_platform(
|
||||
'binary_sensor', DOMAIN, {}, config))
|
||||
return True
|
||||
Reference in new issue
Block a user