OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
Apache License 2.0
137 stars 32 forks source link

When upgrading to a new version, custom fonts get deleted #48

Closed svenove closed 9 months ago

svenove commented 9 months ago

Describe the bug When upgrading to a new version, custom fonts get deleted.

To Reproduce Steps to reproduce the behavior:

  1. Install previous version
  2. Upload additional font to /config/custom_components/open_epaper_link
  3. Update to latest version
  4. Notice font-file missing

Expected behavior Additional fonts should be kept when upgrading

jonasniesner commented 9 months ago

I am not sure if this issue is fixable because I did not find an option in hacs to disable specific folders updates. Would saving the custom fonts somewhere else work for you? maybe even allowing for exernal font urls in automations. I did not consider usecase before tbh

svenove commented 9 months ago

Yeah, storing font in /fonts for example, that would work fine. 😊

jonasniesner commented 9 months ago

Ok, there is on software but a documentation fix. If you put your font in /media/font1.ttf for example, they will not be deleted on integration update. Closing this and updating the documentation.

svenove commented 9 months ago

Had to reference the font like this for it to work: font: ../../media/GothamRnd-Bold.ttf