mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Allow pillow versions over 10 (#5071)
This commit is contained in:
parent
c5aacdd682
commit
ddde1ee31e
@ -3,6 +3,7 @@ from pathlib import Path
|
|||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
from packaging import version
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
@ -69,7 +70,7 @@ def validate_pillow_installed(value):
|
|||||||
"(pip install pillow)"
|
"(pip install pillow)"
|
||||||
) from err
|
) from err
|
||||||
|
|
||||||
if PIL.__version__[0] < "4":
|
if version.parse(PIL.__version__) < version.parse("4.0.0"):
|
||||||
raise cv.Invalid(
|
raise cv.Invalid(
|
||||||
"Please update your pillow installation to at least 4.0.x. "
|
"Please update your pillow installation to at least 4.0.x. "
|
||||||
"(pip install -U pillow)"
|
"(pip install -U pillow)"
|
||||||
|
Loading…
Reference in New Issue
Block a user