From 8a88af20dae3c69155c1910290e564f9ec3b0d8b Mon Sep 17 00:00:00 2001 From: bergemalm Date: Tue, 4 Jul 2017 10:06:46 +0200 Subject: [PATCH] Fix arlo sensors. (#8333) --- homeassistant/components/sensor/arlo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/arlo.py b/homeassistant/components/sensor/arlo.py index e4e0d0330f6..dd36dac7eec 100644 --- a/homeassistant/components/sensor/arlo.py +++ b/homeassistant/components/sensor/arlo.py @@ -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