Skip to content

Commit

Permalink
Pass correct config to updater (#31428)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Feb 3, 2020
1 parent ee927fb commit e78378d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/updater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ async def async_setup(hass, config):
# This component only makes sense in release versions
_LOGGER.info("Running on 'dev', only analytics will be submitted")

config = config.get(DOMAIN, {})
if config.get(CONF_REPORTING):
conf = config.get(DOMAIN, {})
if conf.get(CONF_REPORTING):
huuid = await hass.async_add_job(_load_uuid, hass)
else:
huuid = None

include_components = config.get(CONF_COMPONENT_REPORTING)
include_components = conf.get(CONF_COMPONENT_REPORTING)

async def check_new_version():
"""Check if a new version is available and report if one is."""
Expand Down

0 comments on commit e78378d

Please sign in to comment.