mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Fix proxy camera conversion with PNG Alpha(RGBA) (#40446)
This commit is contained in:
@@ -77,6 +77,8 @@ def _precheck_image(image, opts):
|
||||
if imgfmt not in ("PNG", "JPEG"):
|
||||
_LOGGER.warning("Image is of unsupported type: %s", imgfmt)
|
||||
raise ValueError()
|
||||
if not img.mode == "RGB":
|
||||
img = img.convert("RGB")
|
||||
return img
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user