mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
rename invert to reverse
This commit is contained in:
parent
9d89557d61
commit
7ef110f9c7
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ IMAGE_TYPE = {
|
||||||
}
|
}
|
||||||
|
|
||||||
CONF_USE_TRANSPARENCY = "use_transparency"
|
CONF_USE_TRANSPARENCY = "use_transparency"
|
||||||
CONF_INVERT_COLORS = "invert_colors"
|
CONF_REVERSE_COLORS = "reverse_colors"
|
||||||
|
|
||||||
# If the MDI file cannot be downloaded within this time, abort.
|
# If the MDI file cannot be downloaded within this time, abort.
|
||||||
IMAGE_DOWNLOAD_TIMEOUT = 30 # seconds
|
IMAGE_DOWNLOAD_TIMEOUT = 30 # seconds
|
||||||
|
@ -226,7 +226,7 @@ IMAGE_SCHEMA = cv.Schema(
|
||||||
# Not setting default here on purpose; the default depends on the image type,
|
# Not setting default here on purpose; the default depends on the image type,
|
||||||
# and thus will be set in the "validate_cross_dependencies" validator.
|
# and thus will be set in the "validate_cross_dependencies" validator.
|
||||||
cv.Optional(CONF_USE_TRANSPARENCY): cv.boolean,
|
cv.Optional(CONF_USE_TRANSPARENCY): cv.boolean,
|
||||||
cv.Optional(CONF_INVERT_COLORS default=False): cv.boolean,
|
cv.Optional(CONF_REVERSE_COLORS, default=False): cv.boolean,
|
||||||
cv.Optional(CONF_DITHER, default="NONE"): cv.one_of(
|
cv.Optional(CONF_DITHER, default="NONE"): cv.one_of(
|
||||||
"NONE", "FLOYDSTEINBERG", upper=True
|
"NONE", "FLOYDSTEINBERG", upper=True
|
||||||
),
|
),
|
||||||
|
@ -313,7 +313,7 @@ async def to_code(config):
|
||||||
)
|
)
|
||||||
|
|
||||||
transparent = config[CONF_USE_TRANSPARENCY]
|
transparent = config[CONF_USE_TRANSPARENCY]
|
||||||
invert_colors = config.get(CONF_INVERT_COLORS)
|
invert_colors = config.get(CONF_REVERSE_COLORS)
|
||||||
|
|
||||||
dither = (
|
dither = (
|
||||||
Image.Dither.NONE
|
Image.Dither.NONE
|
||||||
|
|
Loading…
Reference in a new issue