Clean up access to config in various integrations v5 (#34206)
This commit is contained in:
1 parent
1ea7229f32
commit
d842dacfd6
21 files changed
+58
-58
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user