mochipon / hassio-uhubctl

MQTT Bridge for uhubctl - control USB power per-port on smart USB hubs
MIT License
7 stars 3 forks source link

s6-overlay-suexec v3 compatibility for HA 2022.6+ #3

Closed QRPp closed 2 years ago

QRPp commented 2 years ago

“init: false” in config.json fixes the fatal add-on error: s6-overlay-suexec: fatal: can only run as pid 1

“with-contenv” restores SUPERVISOR_TOKEN etc, fixing supervisor errors: [supervisor.api.middleware.security] Invalid token for access /addons/self/options/config [supervisor.api.middleware.security] Invalid token for access /services/mqtt

Cf. https://developers.home-assistant.io/blog/2022/05/12/s6-overlay-base-images/ and https://github.com/just-containers/s6-overlay/blob/master/README.md, respectively; plus https://www.home-assistant.io/blog/2022/06/01/release-20226/#breaking-changes.