Fix arlo sensors. (#8333)

pull/8337/head
bergemalm 2017-07-04 10:06:46 +02:00 committed by Fabian Affolter
parent f8527e9773
commit 8a88af20da
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import voluptuous as vol
from homeassistant.helpers import config_validation as cv
from homeassistant.components.arlo import (
CONF_ATTRIBUTION, DEFAULT_BRAND)
CONF_ATTRIBUTION, DEFAULT_BRAND, DATA_ARLO)
from homeassistant.const import (
ATTR_ATTRIBUTION, CONF_MONITORED_CONDITIONS, STATE_UNKNOWN)
@ -40,7 +40,7 @@ SCAN_INTERVAL = timedelta(seconds=90)
@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
"""Set up an Arlo IP sensor."""
arlo = hass.data.get('arlo')
arlo = hass.data.get(DATA_ARLO)
if not arlo:
return False