mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Only load requested coinbase accounts (#51981)
This commit is contained in:
parent
6f41168616
commit
9e50bd0b30
@ -44,10 +44,10 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
account[API_ACCOUNT_CURRENCY] for account in instance.accounts
|
||||
]
|
||||
|
||||
desired_currencies = []
|
||||
|
||||
if CONF_CURRENCIES in config_entry.options:
|
||||
desired_currencies = config_entry.options[CONF_CURRENCIES]
|
||||
else:
|
||||
desired_currencies = provided_currencies
|
||||
|
||||
exchange_native_currency = instance.exchange_rates.currency
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user