1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +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 from alpha_vantage.foreignexchange import ForeignExchange
api_key = config.get(CONF_API_KEY) api_key = config.get(CONF_API_KEY)
symbols = config.get(CONF_SYMBOLS) symbols = config.get(CONF_SYMBOLS, [])
conversions = config.get(CONF_FOREIGN_EXCHANGE) conversions = config.get(CONF_FOREIGN_EXCHANGE, [])
if not symbols and not conversions: if not symbols and not conversions:
msg = 'Warning: No symbols or currencies configured.' msg = 'Warning: No symbols or currencies configured.'