Clean up access to config in various integrations v5 (#34206)
This commit is contained in:
parent
1ea7229f32
commit
d842dacfd6
21 changed files with 58 additions and 58 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue