mirror of
https://github.com/home-assistant/core
synced 2024-07-24 16:42:06 +02:00
This commit is contained in:
parent
c1c23bb4b6
commit
6bdb2fe5a0
@ -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…
Reference in New Issue
Block a user