mirror of
https://github.com/home-assistant/core.git
synced 2025-06-06 22:27:12 +00:00
Pass correct config to updater (#31428)
This commit is contained in:
parent
ee927fbc9e
commit
e78378d90f
@ -80,13 +80,13 @@ 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")
|
||||||
|
|
||||||
config = config.get(DOMAIN, {})
|
conf = config.get(DOMAIN, {})
|
||||||
if config.get(CONF_REPORTING):
|
if conf.get(CONF_REPORTING):
|
||||||
huuid = await hass.async_add_job(_load_uuid, hass)
|
huuid = await hass.async_add_job(_load_uuid, hass)
|
||||||
else:
|
else:
|
||||||
huuid = None
|
huuid = None
|
||||||
|
|
||||||
include_components = config.get(CONF_COMPONENT_REPORTING)
|
include_components = conf.get(CONF_COMPONENT_REPORTING)
|
||||||
|
|
||||||
async def check_new_version():
|
async def check_new_version():
|
||||||
"""Check if a new version is available and report if one is."""
|
"""Check if a new version is available and report if one is."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user