diff --git a/custom_components/o365/manifest.json b/custom_components/o365/manifest.json
index 983c528..2cb0b0d 100644
--- a/custom_components/o365/manifest.json
+++ b/custom_components/o365/manifest.json
@@ -14,6 +14,6 @@
"O365==2.0.18.1",
"BeautifulSoup4>=4.10.0"
],
- "version": "v3.0.0",
+ "version": "v3.0.1",
"iot_class": "cloud_polling"
}
\ No newline at end of file
diff --git a/custom_components/o365/notify.py b/custom_components/o365/notify.py
index d8decb9..ece2470 100644
--- a/custom_components/o365/notify.py
+++ b/custom_components/o365/notify.py
@@ -120,7 +120,9 @@ def _build_photo_content(self, photos, new_message_attachments):
photos = [photos]
photos_content = ""
+ i = 0
for photo in photos:
+ i += 1
if photo.startswith("http"):
photos_content += f'
'
else:
@@ -128,8 +130,8 @@ def _build_photo_content(self, photos, new_message_attachments):
new_message_attachments.add(photo)
att = new_message_attachments[-1]
att.is_inline = True
- att.content_id = "1"
- photos_content += f'
'
+ att.content_id = str(i)
+ photos_content += f'
'
return photos_content