Pascal Vizeli
31f5033dca
Add throttle to job execution ( #2631 )
...
* Add throttle to job execution
* fix unittests
* Add tests
* address comments
* add comment
* better on __init__
* New text
* Simplify logic
2021-02-25 23:29:03 +01:00
Pascal Vizeli
78d9c60be5
Log issues/suggestion with info ( #2629 )
2021-02-25 19:52:19 +01:00
Stefan Agner
baa86f09e5
Real-time fixes ( #2630 )
...
* Fix path of cpu.rt_runtime_us sysfs file
Fix detection of CPU bandwidth allocation (CONFIG_RT_GROUP_SCHED) option
by checking the correct file location.
* Set priority limit and memory lock limit
Set a soft limit of real-time priority 90 and hard limit of 99. The
maximum is 99, to avoid add-ons using such a high priority without
second thought set the soft limit to 90. This allows a process to higher
the limit to 99, if really required.
Also set max locked memory to 128MB. Locking memory from getting paged
out is often used for the real-time process/thread to avoid delays due
to swapping/pageing in. Ideally a real-time process should only do the
real-time job, hence not need too much memory.
* Remove check for support_cpu_realtime and set correct limit for audio plug-in
2021-02-25 18:48:08 +01:00
Pascal Vizeli
a4c4b39ba8
Fix k-anonymity handling ( #2627 )
2021-02-25 18:16:20 +01:00
Joakim Sørensen
752068bb56
Add /store API ( #2626 )
2021-02-25 16:15:51 +01:00
Pascal Vizeli
739cfbb273
Small cleanups with pwned handling ( #2625 )
2021-02-25 15:36:02 +01:00
Pascal Vizeli
115af4cadf
Optimize resolution checks / add endpoint to trigger it manual ( #2622 )
2021-02-25 14:05:27 +01:00
Joakim Sørensen
ae3274e559
Add home-assistant version to API response ( #2621 )
2021-02-25 11:44:22 +01:00
dependabot[bot]
c61f096dbd
Bump docker from 4.4.3 to 4.4.4 ( #2619 )
...
Bumps [docker](https://github.com/docker/docker-py ) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/docker/docker-py/releases )
- [Commits](https://github.com/docker/docker-py/compare/4.4.3...4.4.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-25 10:27:24 +01:00
dependabot[bot]
ee7b5c42fd
Bump awesomeversion from 21.2.2 to 21.2.3 ( #2620 )
...
Bumps [awesomeversion](https://github.com/ludeeus/awesomeversion ) from 21.2.2 to 21.2.3.
- [Release notes](https://github.com/ludeeus/awesomeversion/releases )
- [Commits](https://github.com/ludeeus/awesomeversion/compare/21.2.2...21.2.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-25 10:27:05 +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
Pascal Vizeli
dd561da819
Fix landingpage on check_api_state ( #2615 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-02-24 21:52:18 +01:00
Joakim Sørensen
cb5932cb8b
Fix issue with concurrent reads ( #2610 )
...
* Fix issue with concurrent reads
* Use lock
* acquire/release
* handle ConnectionError
* No there was not mulitple issues, it's the same code just different syle.....Which is stated on the same page as that image...
2021-02-24 18:36:21 +01:00
Pascal Vizeli
8630adc54a
Add execution limit for jobs ( #2612 )
...
* Add execution limit for jobs
* Add test for execution police
* Use better test
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Rename JobExecutionLimit
* fix typing
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-02-24 17:15:13 +01:00
Joakim Sørensen
90d8832cd2
Send event when add-on changes state ( #2608 )
...
* Send event when add-on changes state
* fix test
2021-02-23 15:12:30 +01:00
Pascal Vizeli
3802b97bb6
Add kernel docs about the device classes ( #2607 )
2021-02-22 15:10:28 +01:00
Pascal Vizeli
2de175e181
Remove not needed call_soon ( #2606 )
2021-02-22 14:41:44 +01:00
Joakim Sørensen
6b7d437b00
Signal frontend to refresh on SU startup ( #2603 )
...
* Signal frontend to refresh on SU startup
* Use sync variant
2021-02-22 14:31:48 +01:00
Pascal Vizeli
e2faf906de
Use the cpu_rt support check also for rtprio ( #2605 )
2021-02-22 14:02:36 +01:00
Franck Nijhof
bb44ce5cd2
Fix small typo in log message ( #2604 )
2021-02-22 13:44:12 +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
e421284471
Detect host support for CPU realtime + add an option for enable it ( #2602 )
2021-02-22 13:30:32 +01:00
Pascal Vizeli
785dc64787
Imrove the LXC detection ( #2599 )
2021-02-22 11:39:18 +01:00
Joakim Sørensen
7e7e3a7876
Update frontend to ef0bfb23 ( #2598 )
2021-02-22 11:22:47 +01:00
Pascal Vizeli
2b45c059e0
Support realtime scheduling for add-ons ( #2593 )
...
* Support realtime scheduling for add-ons
* support on audio
* address comments from @jens-maus
2021-02-22 11:22:36 +01:00
Joakim Sørensen
14ec61f9bd
Update frontend to 2d3cf7d8 ( #2594 )
2021-02-22 09:41:52 +01:00
Joakim Sørensen
5cc72756f8
Fix some issues with the issue template ( #2592 )
2021-02-19 23:35:00 +01:00
Franck Nijhof
44785ef3e2
Update GitHub Issue Form template ( #2591 )
2021-02-19 23:18:23 +01:00
Franck Nijhof
e60d858feb
Allow for static port in Watchdog add-on configuration ( #2589 )
2021-02-19 15:23:17 +01:00
Joakim Sørensen
b31ecfefcd
Initial WS support ( #2439 )
...
* Initial WS support
* test
* Update frontend to fc7c4af2
* Fix issue with closing states
* log error
* make data optional
* limit stopping states
* Move wrappers to HomeAssistantWebSocket
* use info
* Use call_soon
* Use lookuptable for WS commands
* Fix tests
2021-02-19 11:57:31 +01:00
dependabot[bot]
c342231052
Bump docker from 4.4.2 to 4.4.3 ( #2587 )
...
Bumps [docker](https://github.com/docker/docker-py ) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/docker/docker-py/releases )
- [Commits](https://github.com/docker/docker-py/compare/4.4.2...4.4.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-19 10:09:03 +01:00
dependabot[bot]
673666837e
Bump sentry-sdk from 0.20.2 to 0.20.3 ( #2588 )
2021-02-19 08:59:22 +01:00
dependabot[bot]
c8f74d6c0d
Bump actions/stale from v3.0.16 to v3.0.17 ( #2586 )
2021-02-19 08:42:14 +01:00
Pascal Vizeli
7ed9de8014
Fix device check if not exists ( #2585 )
2021.02.11
2021-02-18 12:39:42 +01:00
Pascal Vizeli
8650947f04
Add capabilities for puleaudio ( #2583 )
...
* Add capabilities for puleaudio
* fix import
2021-02-17 17:21:47 +01:00
Pascal Vizeli
a0ac8ced31
Fix handling with full access / blocked devices ( #2581 )
...
* Fix handling with full access / blocked devices
* address comment
* Use name
* Add validation warning
* add GPIO check too
* remove warning
* return directly
* fix tests
2021.02.10
2021-02-17 15:48:48 +01:00
Joakim Sørensen
2145bbea81
Update frontend to 03d41741 ( #2580 )
2021-02-17 13:12:37 +01:00
Pascal Vizeli
480000ee7f
Fix typo in suggestion ( #2578 )
2021-02-17 12:49:07 +01:00
dependabot[bot]
9ec2ad022e
Bump cryptography from 3.4.5 to 3.4.6 ( #2576 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 3.4.5 to 3.4.6.
- [Release notes](https://github.com/pyca/cryptography/releases )
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/3.4.5...3.4.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-17 12:01:18 +01:00
dependabot[bot]
43e40816dc
Bump pylint from 2.6.0 to 2.6.2 ( #2577 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.6.0 to 2.6.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.6.0...pylint-2.6.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-17 12:00:59 +01:00
Pascal Vizeli
941ea3ee68
Fix audio cgroup issue ( #2575 )
2021-02-16 09:34:15 +01:00
Pascal Vizeli
a6e4b5159e
Discovery for vlc telnet ( #2573 )
2021-02-16 09:31:07 +01:00
dependabot[bot]
6f542d58d5
Bump docker from 4.4.1 to 4.4.2 ( #2571 )
...
Bumps [docker](https://github.com/docker/docker-py ) from 4.4.1 to 4.4.2.
- [Release notes](https://github.com/docker/docker-py/releases )
- [Commits](https://github.com/docker/docker-py/compare/4.4.1...4.4.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-16 08:41:01 +01:00
dependabot[bot]
b2b5fcee7d
Bump sentry-sdk from 0.20.1 to 0.20.2 ( #2572 )
...
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python ) from 0.20.1 to 0.20.2.
- [Release notes](https://github.com/getsentry/sentry-python/releases )
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-python/compare/0.20.1...0.20.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-16 08:40:38 +01:00
Pascal Vizeli
59a82345a9
Drop full privileged from audio plugin ( #2570 )
2021-02-16 08:40:19 +01:00
Pascal Vizeli
b61a747876
Kernel modules add-on flag need no extra cap ( #2569 )
2021-02-15 20:42:03 +01:00
dependabot[bot]
72e5d800d5
Bump cryptography from 3.4.4 to 3.4.5 ( #2567 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 3.4.4 to 3.4.5.
- [Release notes](https://github.com/pyca/cryptography/releases )
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/3.4.4...3.4.5 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 10:09:54 +01:00
dependabot[bot]
c7aa6d4804
Bump sentry-sdk from 0.20.0 to 0.20.1 ( #2568 )
...
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python ) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases )
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-python/compare/0.20.0...0.20.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 10:08:58 +01:00
Pascal Vizeli
b31063449d
Fix path for tmpfs ( #2565 )
2021.02.9
2021-02-13 20:34:32 +01:00
dependabot[bot]
477672459d
Bump sentry-sdk from 0.19.5 to 0.20.0 ( #2563 )
...
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python ) from 0.19.5 to 0.20.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases )
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-python/compare/0.19.5...0.20.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 15:33:20 +01:00