Mike Degatano
2be84e1282
Keep shared images on update ( #5268 )
...
* Test stub for keeping shared images after update
* Keep shared images on addon update
* ImageNotFound should only skip the one image not all
* Fix tests and nonetype error
* Normalize logic between two cleanup methods
2024-08-30 15:29:13 +02:00
Stefan Agner
f6faa18409
Bump pre-commit ruff to 0.5.7 and reformat ( #5242 )
...
It seems that the codebase is not formatted with the latest ruff
version. This PR reformats the codebase with ruff 0.5.7.
2024-08-13 20:53:56 +02:00
Pascal Vizeli
c37b5effd7
Add music assistant to the builtin repositories ( #5128 )
...
* Add music assistant to the builtin repositories
* Fix tests
* Fix tests some more
---------
Co-authored-by: Stefan Agner <stefan@agner.ch>
2024-06-21 12:17:21 +02:00
Mike Degatano
a8af04ff82
Cache existence of addon paths ( #4944 )
...
* Cache existence of addon paths
* Always update submodules
* Switch to an always cached model
* Cache on store addon only
* Fix tests
* refresh_cache to refresh_path_cache
* Fix name change in test
* Move logic into StoreManager
2024-03-15 16:43:26 +01:00
Mike Degatano
7fd6dce55f
Migrate to Ruff for lint and format ( #4852 )
...
* Migrate to Ruff for lint and format
* Fix pylint issues
* DBus property sets into normal awaitable methods
* Fix tests relying on separate tasks in connect
* Fixes from feedback
2024-02-05 11:37:39 -05:00
Mike Degatano
140b769a42
Auto updates to new version delay for 24 hours ( #4838 )
2024-01-30 08:58:28 -05:00
Mike Degatano
3cc6bd19ad
Mark system as unhealthy on OSError Bad message errors ( #4750 )
...
* Bad message error marks system as unhealthy
* Finish adding test cases for changes
* Rename test file for uniqueness
* bad_message to oserror_bad_message
* Omit some checks and check for network mounts
2023-12-21 18:05:29 +01:00
Mike Degatano
222c3fd485
Address addon storage race condition ( #4481 )
...
* Address addon storage race condition
* Add some error test cases
2023-08-10 15:24:43 -04:00
Mike Degatano
5ced4e2f3b
Update to python 3.11 ( #4296 )
2023-05-22 19:12:34 +02:00
Mike Degatano
417ee418f2
Handle UnicodeDecodeError ( #4110 )
2023-01-21 17:59:55 +01:00
Mike Degatano
fed4a05003
Clarify message when addon unavailable ( #4098 )
2023-01-12 17:46:40 +01:00
Mike Degatano
09d60b4957
Store load ignores supervisor updated condition ( #3823 )
2022-08-26 10:22:55 +02:00
Mike Degatano
5fc9484f73
Supervisor updated before addon repositories ( #3795 )
2022-08-17 07:28:06 +02:00
Mike Degatano
7a74d77d43
Move addon repo migration to bootstrap ( #3672 )
...
* Move addon repo migration to bootstrap
* Save data after migrating it
2022-06-08 15:21:34 -04:00
Mike Degatano
5f9b999a3c
Use source instead of URL for repos ( #3670 )
2022-06-07 17:55:53 +02:00
Mike Degatano
ccd2c31390
Move repository urls to store settings file ( #3665 )
...
* Move repository urls to store settings file
* Remove default repos from supervisor config
* Fix clone at initial store load
* Mock git load in repository fixture
2022-06-07 10:02:21 +02:00
Mike Degatano
138fd7eec9
APIs for adding/removing an addon repository ( #3649 )
...
* APIs for adding/removing an addon repository
* Misunderstood addons.store, fixed usage
2022-05-23 09:16:42 +02:00
Joakim Sørensen
5503f93a75
Don't remove add-on repos if add-on is installed ( #3364 )
2021-12-14 21:04:31 +01:00
Pascal Vizeli
288d2e5bdb
Use deepmerge for options ( #3162 )
...
* Use deepmerge for options
* fix issue
* Update supervisor/addons/addon.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Add tests
* Fix merge schema
* Make save for overwrites
* drop community
* more cleanup
* Fix tests
* Fix lists
* revert strategy
* protect overwritten lists
* Update tests/api/test_store.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-09-29 09:37:04 +02:00
Joakim Sørensen
ab704c11cf
Ignore rootfs ( #3097 )
2021-09-01 13:58:48 +02:00
Joakim Sørensen
966b962ccf
Ignore all files and directories that starts with . ( #3094 )
...
* Ignore all files and directories that starts with .
* pylint
* Check all parts
2021-09-01 12:50:44 +02:00
Joakim Sørensen
e9c123459f
Break loop when we have the correct file ( #2796 )
...
* Break loop when we have the correct file
* Fix tests
2021-04-09 16:49:41 +02:00
Joakim Sørensen
d50fd3b580
Add network description to translation files ( #2660 )
2021-03-02 15:41:00 +01:00
Joakim Sørensen
43449c85bb
Fix translation schema ( #2654 )
...
* Fix translation schema
* really fix it
* fix migration path
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2021-03-01 16:39:00 +01:00
Joakim Sørensen
7a542aeb38
Add support for loading add-on translation files ( #2644 )
...
* Add support for loading add-on translation files
* Fix storing translations for installed add-ons
* Allow YAML, force schema
* Adjust schema
2021-03-01 11:44:24 +01:00
Pascal Vizeli
19620d6808
Fix: cleanup repository from list ( #2310 )
...
* Fix: cleanup repository from list
* Add repr
* Avoid not exists error message
2020-11-29 14:00:29 +01:00
Pascal Vizeli
aa5297026f
Handle Store suggestion ( #2306 )
...
* Handle Store suggestion
* Add fixup
* Add more fixup & list
* Enable fixups
* Add tests
* fix index
* fix break
* fix import
* Load it anyway
* Run suFix ccestion on load too
* fix error message
* fix error message
* Fix remove
* Finishing
* Add tests
* Fix error
* fix cleanup stale stuff
* Fix source
* use source as url
* add test for url
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-11-28 15:03:44 +01:00
Joakim Sørensen
1af90721cc
Addon repositories ( #2071 )
...
* stash
* Add test
* Use executor
* Make remove a coroutine
* Change logging and return
2020-09-22 23:40:36 +02:00