hassio-addons / addon-unifi

UniFi Network Application - Home Assistant Community Add-ons
https://addons.community
MIT License
278 stars 138 forks source link

Documenting fix for log warning around "ssl", "certfile", and "keyfile" not existing in the schema #365

Closed samyun closed 2 years ago

samyun commented 2 years ago

I figured I'd document this for anyone else who saw errors like this:

21-12-11 08:43:29 WARNING (MainThread) [supervisor.addons.options] Option 'ssl' does not exist in the schema for UniFi Network Application (a0d7b954_unifi)
21-12-11 08:43:29 WARNING (MainThread) [supervisor.addons.options] Option 'certfile' does not exist in the schema for UniFi Network Application (a0d7b954_unifi)
21-12-11 08:43:29 WARNING (MainThread) [supervisor.addons.options] Option 'keyfile' does not exist in the schema for UniFi Network Application (a0d7b954_unifi)

e.g. issue #320

The cause, as discussed in that issue, is the upgrade from 0.x to 1.x, which removed support for SSL.

The recommendation was to backup, remove, and reinstall the addon, per https://github.com/hassio-addons/addon-unifi/issues/316#issuecomment-978072067.

But it's actually sufficient to just remove those lines from the configuration. The easiest way I found to do it was to:

Hope this helps anyone else who's searching the Issues for this warning!