Clean up access to config in various integrations v3 (#33842)
This commit is contained in:
1 parent
b46eee04e4
commit
21dfee831f
16 files changed
+52
-52
No files matched your search
@@ -74,7 +74,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
_LOGGER.error(error)
|
||||
return False
|
||||
|
||||
name = config.get(CONF_NAME)
|
||||
name = config[CONF_NAME]
|
||||
|
||||
sensors = []
|
||||
for variable in config[CONF_MONITORED_VARIABLES]:
|
||||
|
||||
Reference in new issue
Block a user