frenck / action-addon-linter

🚀 Frenck's GitHub Action for linting Home Assistant Add-ons.
MIT License
9 stars 3 forks source link

v2.17.0 errors out for `data` map type #187

Closed jens-maus closed 2 weeks ago

jens-maus commented 2 weeks ago

Since version v2.17.0 the addon-linter returns with the following error:

Error: [{'type': 'data', 'read_only': False, 'path': '/usr/local'}, {'type': 'backup', 'read_only': False}] is not valid under any of the given schemas

I suspect this is due to the missing data type not being part of the newer map linter check added in v2.17.0. However, due to the addon config documentation, data is a valid map. See here:

Bildschirmfoto 2024-09-30 um 08 43 26

Thus, I think data is simply missing as a valid map type in the latest linter configs.

So please consider adding data for action-addon-linter to not complain for addons defining this map type. See here for an actual addon that uses/defines this map:

https://github.com/jens-maus/RaspberryMatic/blob/master/home-assistant-addon/config.yaml#L17-L22

Revertiing to v2.16.0 immediately solves the issue.

frenck commented 2 weeks ago

Thanks for report! That was indeed missed. Fix in https://github.com/frenck/action-addon-linter/releases/tag/v2.17.1