Clean up access to config in various integrations v5 (#34206)

This commit is contained in:
springstan authored and GitHub committed 2020-04-15 14:10:07 +02:00
1 parent 1ea7229f32
commit d842dacfd6
21 files changed
+58 -58

No files matched your search

+4 -4
View File
@@ -45,10 +45,10 @@ def setup(hass, config):
"""Set up the Datadog component."""
conf = config[DOMAIN]
host = conf.get(CONF_HOST)
port = conf.get(CONF_PORT)
sample_rate = conf.get(CONF_RATE)
prefix = conf.get(CONF_PREFIX)
host = conf[CONF_HOST]
port = conf[CONF_PORT]
sample_rate = conf[CONF_RATE]
prefix = conf[CONF_PREFIX]
initialize(statsd_host=host, statsd_port=port)