Currently adding the coinbase
-components shows all wallets (bch, btc, eth, eur and ltc).
This, by default, clutters Home Assistant a bit. To fix this I currently see 2 possibilities:
- Hide the sensor if the wallet is empty:
for account in coinbase_data.accounts.data:
if account['balance']['amount'] != 0:
load_platform(hass, 'sensor', DOMAIN, {'account': account}, config)
- Filter it based on an optional list similar to the exchange rate currencies sensor:
for account in coinbase_data.accounts.data:
if account['balance']['currency'] in wallet_currencies:
load_platform(hass, 'sensor', DOMAIN, {'account': account}, config)
What does the rest of users prefer?