Mike Degatano
f4811a0243
Watchdog addon on successful but unexpected exit ( #3815 )
2022-08-22 20:29:27 -04:00
Mike Degatano
2cd7f9d1b0
Attempt plugin update before failing job condition ( #3796 )
2022-08-17 07:36:05 +02:00
Franck Nijhof
3f88236495
Support for Docker manifests base images add-on build ( #3724 )
...
* Support for Docker manifests base images add-on build
* Set platform for build and tests
* Remove empty test
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-08-16 14:34:32 +02:00
Mike Degatano
c8f184f24c
Add auto update option ( #3769 )
...
* Add update freeze option
* Freeze to auto update and plugin condition
* Add tests
* Add supervisor_version evaluation
* OS updates require supervisor up to date
* Run version check during startup
2022-08-15 12:13:22 -04:00
Mike Degatano
13c10dbb47
Healthy/Unhealthy state means addon started ( #3773 )
2022-08-05 10:04:34 -04:00
Mike Degatano
2b4f46f6b3
Watchdog shouldn't rebuild addons ( #3766 )
...
* Watchdog shouldn't rebuild addons
* pylint fix
2022-08-03 12:06:59 +02:00
Mike Degatano
48c5dd064c
Fix addons always unknown after install ( #3746 )
2022-07-18 15:11:55 -04:00
Mike Degatano
d19166bb86
Docker events based watchdog and docker healthchecks ( #3725 )
...
* Docker events based watchdog
* Separate monitor from DockerAPI since it needs coresys
* Move monitor into dockerAPI
* Fix properties on coresys
* Add watchdog tests
* Added tests
* pylint issue
* Current state failures test
* Thread-safe event processing
* Use labels property
2022-07-15 09:21:59 +02:00
Joakim Sørensen
54edfa53bc
Bump pylint from 2.11.1 to 2.12.1 ( #3330 )
2021-11-29 22:56:38 +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
Pascal Vizeli
04f36e92e1
Return list of possible data disk targets ( #3133 )
...
* Return list of possible data disk targets
* fix path
* fix tests
* Add test
* Fix tests
* Add tests
* Add more tests
* Remove debug
* Address comments
* more clear
2021-09-21 14:51:58 +02:00
Joakim Sørensen
419f603571
Rename snapshot -> backup ( #2940 )
2021-07-27 10:06:09 +02:00
Pascal Vizeli
a4a0b43d91
Using ghcr.io/home-assistant + fallback ( #2959 )
2021-06-14 20:07:44 +02:00
Mike Degatano
58c40cbef6
Allow optional array configs ( #2752 )
2021-03-26 10:42:58 +01:00
Pascal Vizeli
739cfbb273
Small cleanups with pwned handling ( #2625 )
2021-02-25 15:36:02 +01:00
Pascal Vizeli
85d527bfbc
Add check for pwned secrets to resolution center ( #2614 )
...
* Add check for pwned secrets to resolution center
* restructure check
* add checks
* Add test
* Add test
* reload secrets before check
* simplify
* create notification
* Use own exceptions
* Check on startup
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Add job decorator
* Update supervisor/resolution/notify.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Update supervisor/utils/pwned.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-02-25 09:37:45 +01:00
Joakim Sørensen
15544ae589
Show add-on with bad config in log ( #2601 )
2021-02-22 13:43:03 +01:00
Pascal Vizeli
d768b2fa1e
Fix UI options without filter ( #2536 )
2021-02-08 21:37:44 +01:00
Pascal Vizeli
657bafd458
Fix handling with shm and shared /dev ( #2499 )
...
* Fix handling with shm and shared /dev
* address commends
* let's share shm
2021-02-01 14:44:02 +01:00
Pascal Vizeli
e024c3e38d
Improve device selection and show device by id if available ( #2476 )
2021-01-28 15:43:06 +01:00
Pascal Vizeli
6a0206c1e7
Next generation hardware handling ( #2429 )
...
* Next generation hardware handling
* need daemon for some details
* fix tests
* fix wrong coresys lookup
* test initial import
* test device lookup
* validate if device exists
* Add cgroups rules manager
* mapping udev from host
* Modify validation/options handling
* lookup devices
* add support for host udev mapping
* next
* Add policy support to add-ons
* Depricate hardware trigger call
* next cleanup round
* detect USB linking
* optimize
* readd udev utils for backwards compatibility
* fix tests
* Add more tests
* fix tests
* Make device explicit
* Add filter
* work on tests
* Add migration step
* clean out auto_uart
* Fix all tests
* Expose all device information
* small improvment
* Fix loop over right devices
* Use migration for new device format
* Update rootfs/etc/cont-init.d/udev.sh
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Fix old helper
* Fix API
* add helper for by-id
* fix tests
* Fix serial helper
* Fix hardware API schema
* Hide some virtual devices from tracking
* Apply suggestions from code review
Co-authored-by: Stefan Agner <stefan@agner.ch>
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
* fix lint
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* fix black
* fix lint
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-01-28 15:26:56 +01:00
Pascal Vizeli
1a3b369dd7
Update black 20.8b1 ( #1976 )
2020-08-26 23:01:29 +02:00
Pascal Vizeli
efcfc1f841
Watchdog for Add-ons ( #1970 )
...
* Watchdog for Add-ons
* Run task
* Extend appliaction watchdog
* fix spell
* Add running tasks
* Add tests
* Fix states
* Update supervisor/misc/tasks.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/test_validate.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adjust timeout
* change timeout
* Modify tasker
* slots the task object
* fix typing
* Add tests
* fix lint
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-08-26 22:20:35 +02:00
Pascal Vizeli
a9bdab4b49
Fix validation issue addon options ( #1898 )
...
* Fix validation issue addon options
* Add some basic tests
* Update supervisor/addons/validate.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-12 14:49:46 +02:00
Pascal Vizeli
adb39ca93f
Support to exclude machine ( #1835 )
...
* Support to exclude machine
* add tests
2020-07-15 14:53:44 +02:00
Franck Nijhof
f0d46e8671
Improve flake8 configuration and pydocstyle fixes ( #1742 )
2020-05-22 13:38:57 +02:00
Franck Nijhof
1d83c0c77a
Update isort configuration and sorts imports in codebase ( #1739 )
...
* Add known first party to isort configuration
* Run isort on supervisor and tests folder
2020-05-21 13:30:54 +02:00
Pascal Vizeli
4ac7f7dcf0
Rename Hass.io -> Supervisor ( #1522 )
...
* Rename Hass.io -> Supervisor
* part 2
* fix lint
* fix auth name
2020-02-21 17:55:41 +01:00
Bram Kragten
24ded99286
Typo ( #1444 )
...
* Typo
* Typo test
2020-01-20 17:11:41 +01:00
Pascal Vizeli
f55c10914e
UI Schema / Addon options ( #1441 )
...
* UI schema for add-on options
* Fix lint
* Add tests
* Address comments
2020-01-20 15:13:17 +01:00
Pascal Vizeli
611f6f2829
Don't follow requests itself ( #1106 )
...
* Don't follow requests itself
* Fix black lint
2019-05-31 13:53:46 +02:00
Pascal Vizeli
35aae69f23
Support armv7 and allow support of multible arch types per CPU ( #892 )
...
* Support armv7 and first abstraction
* Change layout
* Add more type hints
* Fix imports
* Update
* move forward
* add tests
* fix type
* fix lint & tests
* fix tests
* Fix unittests
* Fix create folder
* cleanup
* Fix import order
* cleanup loop parameter
* cleanup init function
* Allow changeable image name
* fix setup
* Fix load of arch
* Fix lint
* Add typing
* fix init
* fix hassos cli problem & stick on supervisor arch
* address comments
* cleanup
* Fix image selfheal
* Add comment
* update uvloop
* remove uvloop
* fix tagging
* Fix install name
* Fix validate build config
* Abstract image_name from system cache
2019-01-31 18:47:44 +01:00
Pascal Vizeli
a5ecd597ed
Add tests for add-ons map ( #821 )
2018-11-19 16:43:24 +01:00
Christian
b8818788c9
Bugfix Add-on validate correct image url ( #810 )
...
* Bugfix Add-on validate correct image path
* Add tests for different add-on image urls
2018-11-18 19:29:23 +01:00
Pascal Vizeli
05b58d76b9
Add tests for hass.io ( #817 )
...
* Add tests for hass.io
* Fix folder
* Fix test command
2018-11-18 12:08:46 +01:00