mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix forgotten uses of use_transparency (#8115)
This commit is contained in:
		| @@ -273,11 +273,9 @@ IMAGE_TYPE = { | |||||||
|     "GRAYSCALE": ImageGrayscale, |     "GRAYSCALE": ImageGrayscale, | ||||||
|     "RGB565": ImageRGB565, |     "RGB565": ImageRGB565, | ||||||
|     "RGB": ImageRGB, |     "RGB": ImageRGB, | ||||||
|     "TRANSPARENT_BINARY": ReplaceWith( |     "TRANSPARENT_BINARY": ReplaceWith("'type: BINARY' and 'transparency: chroma_key'"), | ||||||
|         "'type: BINARY' and 'use_transparency: chroma_key'" |  | ||||||
|     ), |  | ||||||
|     "RGB24": ReplaceWith("'type: RGB'"), |     "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") | TransparencyType = image_ns.enum("TransparencyType") | ||||||
|   | |||||||
| @@ -834,12 +834,12 @@ image: | |||||||
|     resize: 256x48 |     resize: 256x48 | ||||||
|     file: $component_dir/logo-text.svg |     file: $component_dir/logo-text.svg | ||||||
|     type: RGB565 |     type: RGB565 | ||||||
|     use_transparency: alpha_channel |     transparency: alpha_channel | ||||||
|   - id: dog_image |   - id: dog_image | ||||||
|     file: $component_dir/logo-text.svg |     file: $component_dir/logo-text.svg | ||||||
|     resize: 256x48 |     resize: 256x48 | ||||||
|     type: BINARY |     type: BINARY | ||||||
|     use_transparency: chroma_key |     transparency: chroma_key | ||||||
|  |  | ||||||
| color: | color: | ||||||
|   - id: light_blue |   - id: light_blue | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user