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

This commit is contained in:
springstan 2020-04-15 14:10:07 +02:00 committed by GitHub
parent 1ea7229f32
commit d842dacfd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 58 additions and 58 deletions

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)