Skip to content

Commit

Permalink
change for pillow new constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Jul 7, 2023
1 parent bdbf07a commit ba1c0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weconnect/elements/vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def updateStatusPicture(self) -> None: # noqa: C901
draw = ImageDraw.Draw(imgWithBadges)
draw.ellipse(((imgWidth - 100), warningLightoffset, (imgWidth - 1), (warningLightoffset + 100)), fill=(0, 0, 0, 200))
lightImage = warningLight.icon.value
lightImage = lightImage.resize((64, 64), Image.ANTIALIAS)
lightImage = lightImage.resize((64, 64), Image.LANCZOS)
imgWithBadges.paste(lightImage, ((imgWidth - 82), warningLightoffset + 18), lightImage)
warningLightoffset += 110

Expand All @@ -614,7 +614,7 @@ def updateStatusPicture(self) -> None: # noqa: C901
draw = ImageDraw.Draw(carWithBadges)
draw.ellipse(((imgWidth - 100), warningLightoffset, (imgWidth - 1), (warningLightoffset + 100)), fill=(0, 0, 0, 200))
lightImage = warningLight.icon.value
lightImage = lightImage.resize((64, 64), Image.ANTIALIAS)
lightImage = lightImage.resize((64, 64), Image.LANCZOS)
carWithBadges.paste(lightImage, ((imgWidth - 82), warningLightoffset + 18), lightImage)
warningLightoffset += 110

Expand Down

0 comments on commit ba1c0d0

Please sign in to comment.