From 9f9a937b37cf62480fb5c87175473c756184f1e3 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Mon, 2 Sep 2024 16:37:38 +0000 Subject: [PATCH] rename invert to reverse --- esphome/components/image/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/image/__init__.py b/esphome/components/image/__init__.py index 6693dc1e86..4a92ed25c5 100644 --- a/esphome/components/image/__init__.py +++ b/esphome/components/image/__init__.py @@ -313,7 +313,7 @@ async def to_code(config): ) transparent = config[CONF_USE_TRANSPARENCY] - invert_colors = config.get(CONF_REVERSE_COLORS) + reverse_colors = config.get(CONF_REVERSE_COLORS) dither = ( Image.Dither.NONE @@ -337,7 +337,7 @@ async def to_code(config): elif config[CONF_TYPE] == "RGBA": image = image.convert("RGBA") - if invert_colors: + if reverse_colors: image = invert_image_colors(image) pixels = list(image.getdata()) @@ -355,7 +355,7 @@ async def to_code(config): elif config[CONF_TYPE] == "RGB24": image = image.convert("RGBA") - if invert_colors: + if reverse_colors: image = invert_image_colors(image) pixels = list(image.getdata()) @@ -379,7 +379,7 @@ async def to_code(config): elif config[CONF_TYPE] in ["RGB565"]: image = image.convert("RGBA") - if invert_colors: + if reverse_colors: image = invert_image_colors(image) pixels = list(image.getdata())