mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Clean up access to config in various integrations v3 (#33842)
This commit is contained in:
@@ -25,7 +25,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the available BloomSky weather binary sensors."""
|
||||
# Default needed in case of discovery
|
||||
sensors = config.get(CONF_MONITORED_CONDITIONS, SENSOR_TYPES)
|
||||
sensors = config[CONF_MONITORED_CONDITIONS]
|
||||
bloomsky = hass.data[DOMAIN]
|
||||
|
||||
for device in bloomsky.devices.values():
|
||||
|
||||
Reference in New Issue
Block a user