Bugfix async Yr.no (#4190)

This commit is contained in:
Pascal Vizeli 2016-11-03 10:09:03 +01:00 committed by Johann Kellerman
parent 79fa2d4175
commit c2a5f63b1f

View File

@ -57,6 +57,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
})
@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
"""Setup the Yr.no sensor."""
latitude = config.get(CONF_LATITUDE, hass.config.latitude)