mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 18:57:16 +00:00

* Added support for setting addon target path in map config * Updated addon target path mapping to use dataclass * Added check before adding string folder maps * Moved enum to addon/const, updated map_volumes logic, fixed test * Removed log used for debugging * Use more readable approach to determine addon_config_used Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Use cleaner approach for checking volume config Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Use dict syntax and ATTR_TYPE Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Use coerce for validating mapping type Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Default read_only to true in schema Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Use ATTR_TYPE and ATTR_READ_ONLY instead of static strings Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Use constants instead of in-line strings Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Correct type for path Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Added read_only and path constants * Fixed small syntax error and added includes for constants * Simplify logic for handling string and dict entries in map config * Use ATTR_PATH instead of inline string Co-authored-by: Mike Degatano <michael.degatano@gmail.com> * Add missing ATTR_PATH reference * Moved FolderMapping dataclass to data.py * Fix edge case where "data" map type is used but optional path is not set * Move FolderMapping dataclass to configuration.py to prevent circular reference --------- Co-authored-by: Jeff Oakley <jeff.oakley@LearningCircleSoftware.com> Co-authored-by: Mike Degatano <michael.degatano@gmail.com> Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>