Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan authored Nov 27, 2024
1 parent 92596c4 commit fb9f0aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/ehmtxv2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
_LOGGER = logging.getLogger(__name__)

DEPENDENCIES = ["display", "light", "api"]
AUTO_LOAD = ["ehmtxv2", "json", "image", "animation"]
AUTO_LOAD = ["ehmtxv2", "json"]
IMAGE_TYPE_RGB565 = 4
MAXFRAMES = 110
MAXICONS = 120
Expand Down Expand Up @@ -348,7 +348,10 @@ def thumbnails(frames):
thumbnail = frame.copy()
thumbnail.thumbnail((32,8), Image.ANTIALIAS)
yield thumbnail


cg.add_library("image", None)
cg.add_library("animation", None)

var = cg.new_Pvariable(config[CONF_ID])

logging.info(f"Preparing icons, this may take some seconds.")
Expand Down

0 comments on commit fb9f0aa

Please sign in to comment.