Joakim Sørensen
681a1ecff5
Set connectivity state on network tasks ( #2686 )
...
* Set connectivity state on network tasks
* target connectivity error
2021-03-07 11:47:46 +01:00
Pascal Vizeli
5fe2a815ad
Fix error handling with new config handling ( #2666 )
2021-03-03 12:46:34 +01:00
Joakim Sørensen
bee55d08fb
Create FileConfiguration baseclass ( #2651 )
2021-03-01 12:26:43 +01:00
Joakim Sørensen
3760967f59
Allow use YAML for addon and repository config ( #2645 )
...
* Allow use YAML for addon and repository config
* pylint
2021-02-28 20:00: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
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
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
0c55bf20fc
Fix issue on store git clone ( #2331 )
2020-12-03 21:06:48 +01:00
Pascal Vizeli
f8fd7b5933
Improve error handling with job condition ( #2322 )
...
* Improve error handling with job condition
* fix
* first patch
* last patch
* Address comments
* Revert strange replace
2020-12-03 12:24:32 +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
Pascal Vizeli
fda1b523ba
Extend resolution center ( #2297 )
...
* Extend resolution center
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* move forward
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Rename it to fixups
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Finish p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Finish p1 - add files
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Finishup
* Add more tests
* Add test for suggestion
* Add more tests
* fix tests & isort
* address comments
* address comments v2
* fix isort
* Change reference handling
2020-11-26 17:16:36 +01:00
Pascal Vizeli
e4bf820038
Check & fix git repository integrity ( #2245 )
...
* Check & fix git repository integrity
* fix typing
* New style error handling
* Fix return
* tag more issue
* Fix black
2020-11-13 08:35:45 +01:00
Joakim Sørensen
a18b706f99
Add JobManager and Job decorator ( #2225 )
...
* Adds condition decorator to block execution that require internet
* Fix exsisting tests
* Add internet state to network info
* Add healthy condition
* Add tests
* It's all changed
* rename
2020-11-12 22:57:28 +01:00
Pascal Vizeli
280d423bfe
Fix error if a wlan scan is allready running ( #2238 )
...
* Fix error if a wlan scan is allready running
* fix other messages too
2020-11-11 13:48:50 +01:00
Pascal Vizeli
bd786811a3
Network: abstract dbus and supervisor - ipv6/wifi/vlan ( #2217 )
...
* Abstract code between dbus - supervisor
* cleanup v2
* fix address vs interface
* fix API calls
* Fix methodnames
* add vlan type
* add vlan support
* Fix tests
* Add wifi support
* more OOO
* fix typing import
* typing part 2
* Fix profile
* fix test payload
* ignore powersafe
* support privancy
* fix property
* Fix tests
* full support all API
* Fix all
* more robust
* Update supervisor/dbus/network/connection.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Fix gateway
* fix empty gateway
* Allow no ipv6 or ipv4 kernel support
* Exclude device drivers
* Add wifi
* Use loop on api
* refactory p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p3
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p4
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p5
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p6
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p7
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* refactory p8
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix lint
* update sup p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* update sup p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix tests
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix logging
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* improve mock handling
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* add fixtures
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix tests
* better testing
* Add more tests
* Fix API test
* Add test for vlan payload
* Support variation
* Fix doc string
* support remove & wifi scan
* make sure we ignore local-link on ipv6
* remove privancy - add vlan
* Fix tests
* fix isort
* Fixture dbus by commands
* Add dnsmanager fixture
* expose commands called by dbus
* Add wifi tests
* Update supervisor/plugins/dns.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Address comments & fix tests
* change url to be closer on others
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2020-11-09 08:56:42 +01:00
Pascal Vizeli
d119e99001
Resolution: extend type and context ( #2130 )
...
* Resolution: extend type and context
* fix property
* add helper
* fix api
* fix tests
* Fix patch
* finish tests
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Fix type
* fix lint
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update API & add more tests
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* fix black
* remove azure ci
* fix test
* fix tests
* fix tests
* fix tests p2
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2020-10-16 12:22:32 +02:00
Pascal Vizeli
8da686fc34
Fix corrupt container on startup ( #2122 )
2020-10-13 11:02:54 +02:00
Pascal Vizeli
045a3ba416
Disable auto boot for add-ons with missconfig ( #2057 )
2020-09-15 14:54:18 +02:00
Pascal Vizeli
8b4a137252
Observer plugin ( #2037 )
...
* Observer plugin
* fix error handling
* remove stop function
* fix restart policy
* Add observer watchdog
* Add observer
* Update supervisor/plugins/observer.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Expose port 4357
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2020-09-11 16:05:57 +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
Joakim Sørensen
84755836c9
Filter AddonConfigurationError from sentry ( #1912 )
2020-08-14 14:06:46 +02:00
Pascal Vizeli
f0ed2eba2b
Multicast support on Hass.io Network ( #1634 )
...
* Add multicast layer to docker
* support network forward
* add pluginmanager
* finish multicast plugin
* fix lint
* Add shutdown for plugins
* Add API
* Add watchdog
* Fix black
* Fix path
2020-04-05 23:26:22 +02:00
Pascal Vizeli
96c0fbaf10
Cli rebrand ( #1601 )
...
* Rebrand CLI
* forward
* Fix startup command
* add cli api
* Add token handling
* Fix security check
* fix repair
* fix lint
* Update for new cli
* Add watchdog
* rename
* use s6
2020-03-27 17:37:48 +01:00
Pascal Vizeli
2495cda5ec
Add Pulse audio control basics ( #1525 )
...
* Add Pulse audio control basics
* add functionality
* Fix handling
* Give access to all
* Fix latest issues
* revert docker
* Fix pipeline
2020-02-26 11:48:11 +01:00
Pascal Vizeli
0212d027fb
Add Audio layer / PulseAudio ( #1523 )
...
* Improve alsa handling
* use default from image
* create alsa folder
* Map config into addon
* Add Audio object
* Fix dbus
* add host group file
* Fix persistent file
* Use new template
* fix lint
* Fix lint
* add API
* Update new base image / build system
* Add audio container
* extend new audio settings
* provide pulse client config
* Adjust files
* Use without auth
* reset did not exists now
* cleanup old alsa layer
* fix tasks
* fix black
* fix lint
* Add dbus support
* add dbus adjustments
* Fixups
2020-02-25 18:37:06 +01: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