Cleaning up mistakes

This commit is contained in:
Jeffrey Stone 2019-11-24 21:58:35 -05:00
parent 3bf5c66985
commit d1507c1183
2 changed files with 13 additions and 19 deletions

View File

@ -434,14 +434,14 @@ script:
{%- set event=states.calendar.national_holidays.attributes.message %} {%- set event=states.calendar.national_holidays.attributes.message %}
{% if 'Day' in event %} {% if 'Day' in event %}
{{ [ {{ [
'Today is also {{states.calendar.national_holidays.attributes.message}}. We should celebrate.', "Today is also {{states.calendar.national_holidays.attributes.message}}. We should celebrate.",
'And a very special Happy {{states.calendar.national_holidays.attributes.message}}. I will leave the party planning up to you', "And a very special Happy {{states.calendar.national_holidays.attributes.message}}. I will leave the party planning up to you",
'It is is also {{states.calendar.national_holidays.attributes.message}}. I bet you are glad I told you.', "It is is also {{states.calendar.national_holidays.attributes.message}}. I bet you are glad I told you.",
'You cannot make this stuff up. Today is {{states.calendar.national_holidays.attributes.message}}.', "You cannot make this stuff up. Today is {{states.calendar.national_holidays.attributes.message}}.",
'I have just been informed today is {{states.calendar.national_holidays.attributes.message}}. But that just sounds silly.', "I have just been informed today is {{states.calendar.national_holidays.attributes.message}}. But that just sounds silly.",
'Want to know a fact? Today is {{states.calendar.national_holidays.attributes.message}}', "Want to know a fact? Today is {{states.calendar.national_holidays.attributes.message}}",
'You should tell someone it is {{states.calendar.national_holidays.attributes.message}}. Because I bet know one else knows.', "You should tell someone it is {{states.calendar.national_holidays.attributes.message}}. Because I bet know one else knows.",
'I bet you did not know. Today is {{states.calendar.national_holidays.attributes.message}}. But now you do. And the more you know.' "I bet you did not know. Today is {{states.calendar.national_holidays.attributes.message}}. But now you do. And the more you know."
]|random }} ]|random }}
{%- endif -%} {%- endif -%}
{% endmacro %} {% endmacro %}
@ -1119,14 +1119,9 @@ script:
twitter_stats: twitter_stats:
sequence: sequence:
- service: notify.twitter_notify_image - service: notify.twitter
data_template: data_template:
tweet: !include ../templates/twitter_stats.yaml message: !include ../templates/twitter_stats.yaml
image: >-
{{ [ "/config/www/tweet_images/cloud.jpg",
"/config/www/tweet_images/laptop.jpg",
"/config/www/tweet_images/smart-home.jpg",
"/config/www/tweet_images/earth.jpg"] | random }}
twitter_promos: twitter_promos:
sequence: sequence:
@ -1136,10 +1131,9 @@ script:
twitter_new_ha: twitter_new_ha:
sequence: sequence:
- service: notify.twitter_image - service: notify.twitter
data_template: data_template:
tweet: !include ../templates/twitter_new_ha.yaml message: !include ../templates/twitter_new_ha.yaml
image: "/config/www/tweet_images/ha.jpg"
############################################################################### ###############################################################################

View File

@ -17,7 +17,7 @@
"Want to get YouTube Certified in Home Assistant? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ", "Want to get YouTube Certified in Home Assistant? @JuanMTech has you covered. Subscribe at https://www.youtube.com/user/Jfelipe83M ",
"Want to get YouTube Certified in Home Assistant? @bhautomation has you covered. Subscribe at https://www.youtube.com/channel/UCSKQutOXuNLvFetrKuwudpg ", "Want to get YouTube Certified in Home Assistant? @bhautomation has you covered. Subscribe at https://www.youtube.com/channel/UCSKQutOXuNLvFetrKuwudpg ",
"You can watch videos about how I came to be and all the cool things I'm learning to do at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ", "You can watch videos about how I came to be and all the cool things I'm learning to do at https://www.youtube.com/channel/UCipZJ6748kd8TbelSxcvcVg ",
"Anchorage House's Automation was built under the guiding principal of The Three Laws of Home Automation -> https://github.com/thejeffreystone/home-assistant-configuration#anchorage-houses-three-laws-of-home-automation" "Anchorage House's Automation was built under the guiding principles of The Three Laws of Home Automation -> https://github.com/thejeffreystone/home-assistant-configuration#anchorage-houses-three-laws-of-home-automation"
] | random -}} ] | random -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro getTags() -%} {%- macro getTags() -%}