Skip to content

Commit

Permalink
Merge d6d71f0 into ce5efcd
Browse files Browse the repository at this point in the history
  • Loading branch information
kbickar committed Mar 13, 2019
2 parents ce5efcd + d6d71f0 commit cde670f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/sense/__init__.py
Expand Up @@ -44,7 +44,7 @@ async def async_setup(hass, config):
_LOGGER.error("Could not authenticate with sense server")
return False
hass.async_create_task(
async_load_platform(hass, 'sensor', DOMAIN, None, config))
async_load_platform(hass, 'sensor', DOMAIN, {}, config))
hass.async_create_task(
async_load_platform(hass, 'binary_sensor', DOMAIN, None, config))
async_load_platform(hass, 'binary_sensor', DOMAIN, {}, config))
return True
2 changes: 2 additions & 0 deletions homeassistant/components/sense/binary_sensor.py
Expand Up @@ -52,6 +52,8 @@
async def async_setup_platform(hass, config, async_add_entities,
discovery_info=None):
"""Set up the Sense binary sensor."""
if discovery_info is None:
return
data = hass.data[SENSE_DATA]

sense_devices = await data.get_discovered_device_data()
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/sense/sensor.py
Expand Up @@ -48,6 +48,8 @@ def __init__(self, name, sensor_type):
async def async_setup_platform(hass, config, async_add_entities,
discovery_info=None):
"""Set up the Sense sensor."""
if discovery_info is None:
return
data = hass.data[SENSE_DATA]

@Throttle(MIN_TIME_BETWEEN_DAILY_UPDATES)
Expand Down

0 comments on commit cde670f

Please sign in to comment.