1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-06 18:44:14 -05:00

Encode svg in image entity

This commit is contained in:
Nathan Spencer
2025-11-24 01:12:13 +00:00
parent a6ecd740be
commit b459e3eb9d

View File

@@ -92,7 +92,7 @@ class OasisDeviceImageEntity(OasisDeviceEntity, ImageEntity):
self._attr_image_last_updated = dt_util.now()
return None
self._attr_content_type = "image/svg+xml"
self._cached_image = Image(self.content_type, svg)
self._cached_image = Image(self.content_type, svg.encode())
return self._cached_image.content
@callback