mirror of
https://github.com/esphome/esphome.git
synced 2025-01-03 19:31:46 +01:00
Allow pillow versions over 10 (#5071)
This commit is contained in:
parent
c5aacdd682
commit
ddde1ee31e
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue