Clean up access to config in various integrations v2 (#33763)

This commit is contained in:
springstan authored and GitHub committed 2020-04-07 22:45:56 +02:00
1 parent d95ffb3aa3
commit d7e3b0b755
20 files changed
+59 -59

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
sensors = []
processor = hass.data[DOMAIN]
for sensor_type in config.get(CONF_MONITORED_CONDITIONS):
for sensor_type in config[CONF_MONITORED_CONDITIONS]:
sensors.append(AquaLogicSensor(processor, sensor_type))
async_add_entities(sensors)