mirror of
https://github.com/home-assistant/core
synced 2024-09-06 10:29:55 +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
|
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.'
|
||||||
|
Loading…
Reference in New Issue
Block a user