Fix bloomsky platform discovery (#3303)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-09-10 09:12:24 -07:00
1 parent 54a17f5d98
commit b8251b084a
2 files changed
+4 -2

No files matched your search

@@ -33,7 +33,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the available BloomSky weather binary sensors."""
bloomsky = get_component('bloomsky')
sensors = config.get(CONF_MONITORED_CONDITIONS)
# Default needed in case of discovery
sensors = config.get(CONF_MONITORED_CONDITIONS, SENSOR_TYPES)
for device in bloomsky.BLOOMSKY.devices.values():
for variable in sensors: