Add SVG support (#2983)

This commit is contained in:
guillempages 2023-06-11 23:36:42 +02:00 committed by GitHub
parent e3d191fedb
commit 93d7245eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -700,11 +700,8 @@ Configuration variables:
To use images you will need to have the python ``pillow`` package installed.
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should already be
installed. Otherwise you need to install it using ``pip install pillow``.
.. note::
To use mdi images you will additionally need to have the python ``cairosvg`` package installed.
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should already be
Additionally, if you want to use SVG images (including MDI images), you will additionally need to have the python ``cairosvg`` package installed.
If you're running this as a Home Assistant add-on or with the official ESPHome docker image, it should also already be
installed. Otherwise you need to install it using ``pip install cairosvg``.
And then later in code: