From d716c11d8d8103bbf441c09bb6472e51fed00cee Mon Sep 17 00:00:00 2001 From: ccostan Date: Mon, 12 Jul 2021 12:51:21 -0400 Subject: [PATCH] Fixed Yahoo Finance Errors #910 --- config/packages/finance.yaml | 15 +++++++-------- config/script/tweet.yaml | 6 +++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/config/packages/finance.yaml b/config/packages/finance.yaml index 8dfa15af..acd4ffba 100755 --- a/config/packages/finance.yaml +++ b/config/packages/finance.yaml @@ -5,14 +5,13 @@ # https://www.vcloudinfo.com/2020/10/how-to-track-stocks-in-home-assistant-using-a-custom-component.html #------------------------------------------- -sensor: - - platform: yahoofinance - scan_interval: - hours: 4 - symbols: - - TSLA - - VMW - - AMZN +yahoofinance: + scan_interval: + hours: 4 + symbols: + - TSLA + - VMW + - AMZN # sensor: # - platform: alpha_vantage diff --git a/config/script/tweet.yaml b/config/script/tweet.yaml index 77eb8725..4e92c0ce 100755 --- a/config/script/tweet.yaml +++ b/config/script/tweet.yaml @@ -148,11 +148,11 @@ tweet_engine_random: ], "stocks": [ - "I am keeping track of the current #Tesla stock price. It is ${{ states('yahoofinance.tsla')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #Solar", + "I am keeping track of the current #Tesla stock price. It is ${{ states('sensor.yahoofinance_tsla')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #Solar", "I am keeping track of the current #Bitcoin prices. It is ${{ states('sensor.bitcoin')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #BTC", "I am keeping track of the current #Ethereum prices. It is ${{ states('sensor.ethereum')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #ETH", - "I am keeping track of the current #VMware stock price. It is ${{ states('yahoofinance.vmw')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #vExpert", - "I am keeping track of the current #Amazon stock prices. It is ${{ states('yahoofinance.amzn')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #AWS" + "I am keeping track of the current #VMware stock price. It is ${{ states('sensor.yahoofinance_vmw')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #vExpert", + "I am keeping track of the current #Amazon stock prices. It is ${{ states('sensor.yahoofinance_amzn')|round }}. Get your FREE stock here: https://join.robinhood.com/giancac82 #AWS" ], "night": [