hass-core/homeassistant/components/notify
CV db07e45df8 Fix breaking on HTML email without images (#22143)
* Fix breaking on HTML email without images

If using html emails with no images the code breaks since it is not tested for empty (uninitialized) key images.

* fixed long line

* Implemented suggested better solution

Better solution to allow data -> html email without images.

* Protecting data -> without html key from crashing

If the data key does not contain the html key, sending the email would crash this "script". Preventing this by returning an default empty array.
2019-03-19 14:37:12 -07:00
..
__init__.py Async syntax 4/8 (#17018) 2018-10-01 08:58:21 +02:00
apns.py More pylint 2 fixes (#15565) 2018-07-20 11:45:20 +03:00
aws_lambda.py Remove hass.config from aws_lambda notify payload (#22125) 2019-03-17 11:42:49 +01:00
aws_sns.py Upgrade boto3 to 1.9.16 (#17140) 2018-10-06 20:46:20 +02:00
aws_sqs.py Upgrade boto3 to 1.9.16 (#17140) 2018-10-06 20:46:20 +02:00
ciscospark.py Lint cleanup (#15103) 2018-06-25 13:05:07 -04:00
clickatell.py Added new Clickatell SMS messaging Notify Platform (#9775) 2017-10-29 09:14:40 +01:00
clicksend.py clean up clicksend (#17723) 2018-10-23 14:06:42 +02:00
clicksend_tts.py Clean up clicksend_tts (#17749) 2018-10-24 14:13:07 +02:00
command_line.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
demo.py Add discovery notify support and mysensors notify (#5219) 2017-01-15 03:53:14 +01:00
discord.py Discord - Minor bugfixes (#18385) 2018-11-11 23:16:23 +01:00
facebook.py Added FB messenger broadcast api to notify.facebook component (#12459) 2018-04-17 14:23:41 +02:00
file.py Add discovery notify support and mysensors notify (#5219) 2017-01-15 03:53:14 +01:00
flock.py Add Flock notification platform (#14533) 2018-05-31 23:07:50 +02:00
free_mobile.py Upgrade to 0.1.2 (#10348) 2017-11-08 16:11:12 +01:00
gntp.py Handle more file closing using context manager (#11942) 2018-01-31 11:30:48 +01:00
group.py Async syntax 4/8 (#17018) 2018-10-01 08:58:21 +02:00
hipchat.py Move constant to 'const.py' and use already defined ones (#10211) 2017-10-29 17:28:07 +01:00
html5.py html5 notifications add VAPID support (#20415) 2019-01-29 14:49:33 -08:00
kodi.py Cast displaytime to int for JSON RPC (#21649) 2019-03-04 15:25:28 +01:00
lannouncer.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
llamalab_automate.py Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
mastodon.py Upgrade Mastodon.py to 1.3.1 (#15766) 2018-07-31 21:17:55 +02:00
message_bird.py Remove inline pylint disables for messages disabled in pylintrc (#14978) 2018-06-16 00:15:46 +02:00
mycroft.py Mycroft notify/component (#9173) 2017-08-27 13:53:20 -07:00
nfandroidtv.py pylint 2.3.0 (#21485) 2019-02-27 16:10:40 -05:00
prowl.py Async syntax 4/8 (#17018) 2018-10-01 08:58:21 +02:00
pushbullet.py Remove inline pylint disables for messages disabled in pylintrc (#14978) 2018-06-16 00:15:46 +02:00
pushetta.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
pushover.py Fix pushover schema 2019-02-14 12:06:25 -08:00
pushsafer.py pylint 2.3.0 (#21485) 2019-02-27 16:10:40 -05:00
rest.py Update rest.py (#22077) 2019-03-15 10:14:22 -07:00
rocketchat.py Move constant to 'const.py' and use already defined ones (#10211) 2017-10-29 17:28:07 +01:00
sendgrid.py Add optional sender name for SendGrid (#21610) 2019-03-03 13:44:40 -08:00
services.yaml Add notify.html5_dismiss service (#19912) 2019-01-15 15:31:57 -08:00
simplepush.py Revert "Remove simplepush.io (#14358)" 2018-05-31 17:58:03 -04:00
slack.py pylint 2.3.0 (#21485) 2019-02-27 16:10:40 -05:00
smtp.py Fix breaking on HTML email without images (#22143) 2019-03-19 14:37:12 -07:00
stride.py Added Stride notification component (#13221) 2018-03-15 20:36:03 -07:00
synology_chat.py Synology chat add verify ssl (#19276) 2018-12-14 08:42:01 +01:00
syslog.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
telegram.py Fix device_tracker service call & cleanup (#17173) 2018-10-05 23:09:55 +02:00
twilio_call.py Upgrade twilio package to version 6.19.1 (#17395) (#17424) 2018-10-18 09:17:55 +02:00
twilio_sms.py Added regexp validation allowing Twilio notifications to use Sender ID instead of phone number (#19644) 2018-12-30 18:34:29 +01:00
twitter.py Upgrade TwitterAPI to 2.5.9 (#20372) 2019-01-24 09:37:25 +01:00
xmpp.py Upgrade slixmpp to 1.4.2 (#20971) 2019-02-11 08:33:57 -05:00
yessssms.py YesssSMS handling more errors, upgrade to version 0.2.3 (#17052) 2018-10-04 17:34:04 -04:00