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:
1 parent
96aaa25aad
commit
e2af216bcd
20 files changed
+53
-55
No files matched your search
@@ -48,10 +48,10 @@ def setup(hass, config):
|
||||
Will automatically setup sensors to support
|
||||
wallets discovered on the network.
|
||||
"""
|
||||
api_key = config[DOMAIN].get(CONF_API_KEY)
|
||||
api_secret = config[DOMAIN].get(CONF_API_SECRET)
|
||||
api_key = config[DOMAIN][CONF_API_KEY]
|
||||
api_secret = config[DOMAIN][CONF_API_SECRET]
|
||||
account_currencies = config[DOMAIN].get(CONF_ACCOUNT_CURRENCIES)
|
||||
exchange_currencies = config[DOMAIN].get(CONF_EXCHANGE_CURRENCIES)
|
||||
exchange_currencies = config[DOMAIN][CONF_EXCHANGE_CURRENCIES]
|
||||
|
||||
hass.data[DATA_COINBASE] = coinbase_data = CoinbaseData(api_key, api_secret)
|
||||
|
||||
|
||||
Reference in new issue
Block a user