1
mirror of https://github.com/home-assistant/core synced 2024-07-24 16:42:06 +02:00
ChristianKuehnel 2018-02-27 07:42:32 +01:00 committed by Paulus Schoutsen
parent c1c23bb4b6
commit 6bdb2fe5a0

View File

@ -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.'