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
@@ -51,7 +51,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
return
sensors = []
for sensor_type in config.get(CONF_MONITORED_CONDITIONS):
for sensor_type in config[CONF_MONITORED_CONDITIONS]:
if sensor_type == "total_cameras":
sensors.append(ArloSensor(SENSOR_TYPES[sensor_type][0], arlo, sensor_type))
else: