Clean up access to config in various integrations v4 (#34174)

* Clean up access to config in various integrations v4

* Address review comments
This commit is contained in:
springstan authored and GitHub committed 2020-04-14 20:38:55 +02:00
1 parent 96aaa25aad
commit e2af216bcd
20 files changed
+53 -55

No files matched your search

@@ -61,8 +61,8 @@ def setup_platform(hass, config, add_entities, discover_info=None):
host = config.get(CONF_HOST)
password = config.get(CONF_PASSWORD)
port = config.get(CONF_PORT)
name = config.get(CONF_NAME)
port = config[CONF_PORT]
name = config[CONF_NAME]
try:
cmus_remote = CmusDevice(host, password, port, name)