mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix discovery
This commit is contained in:
@@ -86,6 +86,10 @@ async def async_setup(hass, config):
|
|||||||
# This component only makes sense in release versions
|
# This component only makes sense in release versions
|
||||||
_LOGGER.info("Running on 'dev', only analytics will be submitted")
|
_LOGGER.info("Running on 'dev', only analytics will be submitted")
|
||||||
|
|
||||||
|
hass.async_create_task(
|
||||||
|
discovery.async_load_platform(hass, "binary_sensor", DOMAIN, {}, config)
|
||||||
|
)
|
||||||
|
|
||||||
config = config.get(DOMAIN, {})
|
config = config.get(DOMAIN, {})
|
||||||
if config.get(CONF_REPORTING):
|
if config.get(CONF_REPORTING):
|
||||||
huuid = await hass.async_add_job(_load_uuid, hass)
|
huuid = await hass.async_add_job(_load_uuid, hass)
|
||||||
@@ -94,10 +98,6 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
include_components = config.get(CONF_COMPONENT_REPORTING)
|
include_components = config.get(CONF_COMPONENT_REPORTING)
|
||||||
|
|
||||||
hass.async_create_task(
|
|
||||||
discovery.async_load_platform(hass, "binary_sensor", DOMAIN, {}, config)
|
|
||||||
)
|
|
||||||
|
|
||||||
async def check_new_version(now):
|
async def check_new_version(now):
|
||||||
"""Check if a new version is available and report if one is."""
|
"""Check if a new version is available and report if one is."""
|
||||||
result = await get_newest_version(hass, huuid, include_components)
|
result = await get_newest_version(hass, huuid, include_components)
|
||||||
|
Reference in New Issue
Block a user