crismc/homeassistant_addons

[Bug]: welcome text not working, textsize deprecated

Closed this issue · 0 comments

Requirements

  • I have updated I2C_OLED to the latest available version
  • I did a search to see if there is a similar issue.

Current Behavior

no welcome text is displayed due to error

2023-12-29T12:24:43.659857000Z INFO:__main__:'welcome' is being processed
2023-12-29T12:24:43.660045000Z INFO:Screen:'WelcomeScreen' created
2023-12-29T12:24:43.660471000Z INFO:Screen:Welcome screen text: 'Welcome to {hostname}' added
2023-12-29T12:24:43.660693000Z INFO:Screen:'WelcomeScreen' rendering
2023-12-29T12:24:43.660951000Z INFO:Utils:Requesting data from 'http://supervisor/host/info'
2023-12-29T12:24:43.685927000Z INFO:Screen:Welcome screen text compiled: 'Welcome to HOMEASSISTANT'
2023-12-29T12:24:43.687480000Z CRITICAL:__main__:Screen 'welcome' has an internal error: 'ImageDraw' object has no attribute 'textsize'

Expected Behavior

text to be displayed

Steps To Reproduce

No response

Context

YAML state

Environment

- Browser:
- HA Version:
- I2C_OLED:

Anything else?

Pillow has removed testsize in version 10.0.0> so you need to pin to version 9.5.0 OR update code to try/catch
pyload/pyload#4354

pyload/pyload@6569da0