1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-07 13:40:59 +00:00

Fix forgotten uses of use_transparency (#8115)

This commit is contained in:
Stefan Rado 2025-01-29 04:54:10 +01:00 committed by GitHub
parent 2489f95107
commit a23ce416ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -273,11 +273,9 @@ IMAGE_TYPE = {
"GRAYSCALE": ImageGrayscale,
"RGB565": ImageRGB565,
"RGB": ImageRGB,
"TRANSPARENT_BINARY": ReplaceWith(
"'type: BINARY' and 'use_transparency: chroma_key'"
),
"TRANSPARENT_BINARY": ReplaceWith("'type: BINARY' and 'transparency: chroma_key'"),
"RGB24": ReplaceWith("'type: RGB'"),
"RGBA": ReplaceWith("'type: RGB' and 'use_transparency: alpha_channel'"),
"RGBA": ReplaceWith("'type: RGB' and 'transparency: alpha_channel'"),
}
TransparencyType = image_ns.enum("TransparencyType")

View File

@ -834,12 +834,12 @@ image:
resize: 256x48
file: $component_dir/logo-text.svg
type: RGB565
use_transparency: alpha_channel
transparency: alpha_channel
- id: dog_image
file: $component_dir/logo-text.svg
resize: 256x48
type: BINARY
use_transparency: chroma_key
transparency: chroma_key
color:
- id: light_blue