diff --git a/homeassistant/components/cloud/ai_task.py b/homeassistant/components/cloud/ai_task.py index a92060db7b1..7123b5cd32b 100644 --- a/homeassistant/components/cloud/ai_task.py +++ b/homeassistant/components/cloud/ai_task.py @@ -31,6 +31,7 @@ _LOGGER = logging.getLogger(__name__) def _convert_image_for_editing(data: bytes) -> tuple[bytes, str]: """Ensure the image data is in a format accepted by OpenAI image edits.""" + img: Image.Image stream = io.BytesIO(data) with Image.open(stream) as img: mode = img.mode diff --git a/homeassistant/components/doods/manifest.json b/homeassistant/components/doods/manifest.json index f4bfc615608..6505f63d363 100644 --- a/homeassistant/components/doods/manifest.json +++ b/homeassistant/components/doods/manifest.json @@ -6,5 +6,5 @@ "iot_class": "local_polling", "loggers": ["pydoods"], "quality_scale": "legacy", - "requirements": ["pydoods==1.0.2", "Pillow==12.0.0"] + "requirements": ["pydoods==1.0.2", "Pillow==12.1.1"] } diff --git a/homeassistant/components/generic/manifest.json b/homeassistant/components/generic/manifest.json index 33e1afeb18f..b6d354b6f60 100644 --- a/homeassistant/components/generic/manifest.json +++ b/homeassistant/components/generic/manifest.json @@ -7,5 +7,5 @@ "documentation": "https://www.home-assistant.io/integrations/generic", "integration_type": "device", "iot_class": "local_push", - "requirements": ["av==16.0.1", "Pillow==12.0.0"] + "requirements": ["av==16.0.1", "Pillow==12.1.1"] } diff --git a/homeassistant/components/image_upload/manifest.json b/homeassistant/components/image_upload/manifest.json index a37ab4c010a..394e1871d29 100644 --- a/homeassistant/components/image_upload/manifest.json +++ b/homeassistant/components/image_upload/manifest.json @@ -7,5 +7,5 @@ "documentation": "https://www.home-assistant.io/integrations/image_upload", "integration_type": "system", "quality_scale": "internal", - "requirements": ["Pillow==12.0.0"] + "requirements": ["Pillow==12.1.1"] } diff --git a/homeassistant/components/matrix/manifest.json b/homeassistant/components/matrix/manifest.json index 3e0baa5e1be..2ad943a8490 100644 --- a/homeassistant/components/matrix/manifest.json +++ b/homeassistant/components/matrix/manifest.json @@ -6,5 +6,5 @@ "iot_class": "cloud_push", "loggers": ["matrix_client"], "quality_scale": "legacy", - "requirements": ["matrix-nio==0.25.2", "Pillow==12.0.0", "aiofiles==24.1.0"] + "requirements": ["matrix-nio==0.25.2", "Pillow==12.1.1", "aiofiles==24.1.0"] } diff --git a/homeassistant/components/proxy/manifest.json b/homeassistant/components/proxy/manifest.json index c586df030c1..dfdb172f675 100644 --- a/homeassistant/components/proxy/manifest.json +++ b/homeassistant/components/proxy/manifest.json @@ -4,5 +4,5 @@ "codeowners": [], "documentation": "https://www.home-assistant.io/integrations/proxy", "quality_scale": "legacy", - "requirements": ["Pillow==12.0.0"] + "requirements": ["Pillow==12.1.1"] } diff --git a/homeassistant/components/qrcode/manifest.json b/homeassistant/components/qrcode/manifest.json index 6cc68e53151..25cce8f09c4 100644 --- a/homeassistant/components/qrcode/manifest.json +++ b/homeassistant/components/qrcode/manifest.json @@ -6,5 +6,5 @@ "iot_class": "calculated", "loggers": ["pyzbar"], "quality_scale": "legacy", - "requirements": ["Pillow==12.0.0", "pyzbar==0.1.7"] + "requirements": ["Pillow==12.1.1", "pyzbar==0.1.7"] } diff --git a/homeassistant/components/seven_segments/manifest.json b/homeassistant/components/seven_segments/manifest.json index 1aa2b4fea69..745b96bb2eb 100644 --- a/homeassistant/components/seven_segments/manifest.json +++ b/homeassistant/components/seven_segments/manifest.json @@ -5,5 +5,5 @@ "documentation": "https://www.home-assistant.io/integrations/seven_segments", "iot_class": "local_polling", "quality_scale": "legacy", - "requirements": ["Pillow==12.0.0"] + "requirements": ["Pillow==12.1.1"] } diff --git a/homeassistant/components/sighthound/manifest.json b/homeassistant/components/sighthound/manifest.json index 596e9c1751a..64ba7361aeb 100644 --- a/homeassistant/components/sighthound/manifest.json +++ b/homeassistant/components/sighthound/manifest.json @@ -6,5 +6,5 @@ "iot_class": "cloud_polling", "loggers": ["simplehound"], "quality_scale": "legacy", - "requirements": ["Pillow==12.0.0", "simplehound==0.3"] + "requirements": ["Pillow==12.1.1", "simplehound==0.3"] } diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 4607f0cca0d..6e45cb30c21 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -51,7 +51,7 @@ openai==2.21.0 orjson==3.11.5 packaging>=23.1 paho-mqtt==2.1.0 -Pillow==12.0.0 +Pillow==12.1.1 propcache==0.4.1 psutil-home-assistant==0.0.1 PyJWT==2.10.1 diff --git a/pyproject.toml b/pyproject.toml index fd4d2cf1e13..1b97a7e7faa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ dependencies = [ "PyJWT==2.10.1", # PyJWT has loose dependency. We want the latest one. "cryptography==46.0.5", - "Pillow==12.0.0", + "Pillow==12.1.1", "propcache==0.4.1", "pyOpenSSL==25.3.0", "orjson==3.11.5", diff --git a/requirements.txt b/requirements.txt index ab83f697a82..001c32437ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -36,7 +36,7 @@ lru-dict==1.3.0 mutagen==1.47.0 orjson==3.11.5 packaging>=23.1 -Pillow==12.0.0 +Pillow==12.1.1 propcache==0.4.1 psutil-home-assistant==0.0.1 PyJWT==2.10.1 diff --git a/requirements_all.txt b/requirements_all.txt index 42510a37e91..0593cf24d99 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -38,7 +38,7 @@ PSNAWP==3.0.1 # homeassistant.components.qrcode # homeassistant.components.seven_segments # homeassistant.components.sighthound -Pillow==12.0.0 +Pillow==12.1.1 # homeassistant.components.plex PlexAPI==4.15.16 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 10efa00a56c..735117a278c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -38,7 +38,7 @@ PSNAWP==3.0.1 # homeassistant.components.qrcode # homeassistant.components.seven_segments # homeassistant.components.sighthound -Pillow==12.0.0 +Pillow==12.1.1 # homeassistant.components.plex PlexAPI==4.15.16