This commit is contained in:
parent
c1c23bb4b6
commit
6bdb2fe5a0
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
from alpha_vantage.foreignexchange import ForeignExchange
|
||||
|
||||
api_key = config.get(CONF_API_KEY)
|
||||
symbols = config.get(CONF_SYMBOLS)
|
||||
conversions = config.get(CONF_FOREIGN_EXCHANGE)
|
||||
symbols = config.get(CONF_SYMBOLS, [])
|
||||
conversions = config.get(CONF_FOREIGN_EXCHANGE, [])
|
||||
|
||||
if not symbols and not conversions:
|
||||
msg = 'Warning: No symbols or currencies configured.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue