Allow pillow versions over 10 (#5071)

This commit is contained in:
Jimmy Hedman 2023-07-10 01:34:43 +02:00 committed by GitHub
parent c5aacdd682
commit ddde1ee31e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ from pathlib import Path
import hashlib
import os
import re
from packaging import version
import requests
@ -69,7 +70,7 @@ def validate_pillow_installed(value):
"(pip install pillow)"
) from err
if PIL.__version__[0] < "4":
if version.parse(PIL.__version__) < version.parse("4.0.0"):
raise cv.Invalid(
"Please update your pillow installation to at least 4.0.x. "
"(pip install -U pillow)"