Provide correct defaults for CoinBase options flow (#52255)

This commit is contained in:
Tom Brien 2021-06-28 19:14:11 +01:00 committed by GitHub
parent f2fe6c26ab
commit a1c741a46d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,8 +150,8 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
"""Manage the options.""" """Manage the options."""
errors = {} errors = {}
default_currencies = self.config_entry.options.get(CONF_CURRENCIES) default_currencies = self.config_entry.options.get(CONF_CURRENCIES, [])
default_exchange_rates = self.config_entry.options.get(CONF_EXCHANGE_RATES) default_exchange_rates = self.config_entry.options.get(CONF_EXCHANGE_RATES, [])
if user_input is not None: if user_input is not None:
# Pass back user selected options, even if bad # Pass back user selected options, even if bad