epenet
a0f725dfcb
Add type hints to tests ( #89497 )
2023-03-10 12:06:50 +01:00
Joakim Sørensen
4f29e1e180
Add stats sensors for core and supervisor ( #89455 )
...
* Add stats sensors for core and supervisor
* Update homeassistant/components/hassio/__init__.py
2023-03-09 19:06:35 +01:00
Joakim Sørensen
e5ce8e920d
Add paths for add-on changelog and documentation ( #89411 )
2023-03-08 20:23:33 -05:00
Franck Nijhof
feb3f543be
Improve Supervisor API handling ( #89379 )
2023-03-08 15:21:11 +01:00
epenet
853bd52a22
Adjust entity registry access in tests (1) ( #88950 )
2023-03-01 09:11:14 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
1e352b60df
Add type hints to integration tests (part 11) ( #87996 )
2023-02-13 14:22:49 +01:00
epenet
89e4ee5320
Add type hints to integration tests (part 8) ( #87982 )
2023-02-13 11:13:48 +01:00
epenet
37a2040d7b
Add type hints to integration tests (h-i) ( #87703 )
2023-02-08 18:12:56 +01:00
epenet
59ca7780fa
Add typing to tests with single hass argument ( #87631 )
2023-02-07 15:01:16 +01:00
epenet
a79be493e5
Adjust hass_client type hint in integration tests ( #86954 )
...
* Adjust hass_client type hint in integration tests
* Adjust hass_client_no_auth
* Fix rebase
2023-02-02 16:29:57 -05:00
Franck Nijhof
57cf11f067
Enable Ruff PT015 ( #86775 )
2023-01-27 11:10:29 +01:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
Erik Montnemery
f17a829bd8
Only wait for import flows to initialize at setup ( #86106 )
...
* Only wait for import flows to initialize at setup
* Update hassio tests
* Update hassio tests
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-18 10:44:18 +01:00
Martin Hjelmare
94b80db968
Handle not available add-on in hassio add-on manager ( #84943 )
...
* Handle not available add-on in hassio add-on manager
* Fix zwave_js tests
* Fix sky connect tests
* Fix matter tests
* Fix yellow tests
* Update hardware tests
2023-01-02 20:28:21 -05:00
Erik Montnemery
aaec464627
Add support for managing the silabs multiprotocol add-on ( #82170 )
...
* Add support for managing the silabs multiprotocol add-on
* Fix passing context when starting option flow
* Allow unloading a ha yellow config entry
* Fix tests
* Log data passed to ZHA option flow
* Improve ZHA migration logic
* Move tests
* Improve test coverage
* Remove dead code
* Drop automatic ZHA migration
2022-11-16 17:38:07 +01:00
Martin Hjelmare
9ded232522
Move zwave_js addon manager to hassio integration ( #81354 )
2022-11-10 10:09:52 +01:00
Mike Degatano
0bfb0c25f6
Improve supervisor repairs ( #81387 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-11-01 21:29:11 -04:00
Mike Degatano
82151bfd40
Create repairs for unsupported and unhealthy ( #80747 )
2022-10-31 09:57:54 -04:00
Martin Hjelmare
62c4cd3c26
Add name and slug to supervisor discovery info ( #80094 )
2022-10-11 16:56:45 +02:00
Mike Degatano
416c10a793
Supervisor update entity auto update from api ( #79611 )
...
* Supervisor update entity auto update from api
* Update api mocks in tests
2022-10-05 08:27:56 +02:00
Joakim Sørensen
69c5d910d4
Remove deprecated update binary sensor from Supervisor ( #78664 )
2022-09-18 09:58:14 +02:00
Erik Montnemery
853fab0a68
Mock MQTT setup in hassio tests ( #77245 )
...
* Mock MQTT setup in hassio tests
* Tweak
2022-08-24 10:48:23 +02:00
J. Nick Koston
eeb9a9f058
Make sure all discovery flows are using the helper ( #76641 )
2022-08-12 09:25:23 -04:00
Martin Hjelmare
842cc060f8
Fix zwave_js addon info ( #76044 )
...
* Add add-on store info command
* Use add-on store info command in zwave_js
* Fix init tests
* Update tests
* Fix method for addon store info
* Fix response parsing
* Fix store addon installed response parsing
* Remove addon info log that can contain network keys
* Add supervisor store addon info test
* Default to version None if add-on not installed
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-08-03 22:33:05 +02:00
Pascal Vizeli
eac7c5f177
Remove deprecated X-Hassio-Key usage ( #73783 )
...
* Remove deprecated X-Hassio-Key usage
* ...
* Update const.py
* Update ingress.py
* Update test_ingress.py
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2022-06-21 17:11:20 +02:00
Erik Montnemery
e3b6c7a66f
Add Home Assistant Yellow integration ( #73272 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-06-13 23:25:11 -07:00
Erik Montnemery
542eae1cf3
Add additional board types to hassio ( #73267 )
...
* Add additional board types to hassio
* Remove unsupported boards
* Add rpi2 back
2022-06-09 16:09:00 +02:00
Joakim Sørensen
3a0111e65d
Use supervisor envs instead of hassio ( #72601 )
2022-05-30 12:00:13 +02:00
Erik Montnemery
2bc093a04d
Hardware integration MVP ( #71677 )
2022-05-25 20:39:15 +02:00
Joakim Sørensen
f90effc299
Add agent version to Supervisor system health ( #72360 )
...
Co-authored-by: Stefan Agner <stefan@agner.ch>
2022-05-23 09:22:49 -07:00
Joakim Sørensen
03ab9d07a8
Remove more info links for hassio system health ( #71286 )
2022-05-04 15:47:24 +02:00
Joakim Sørensen
9525077574
Add diagnostics platform to the Supervisor integration ( #70265 )
...
* Add diagnostics platform to the Supervisor integration
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-19 12:16:36 +02:00
Joakim Sørensen
ae9315aa29
Limit Supervisor refresh updates ( #70075 )
2022-04-15 09:31:02 -07:00
Joakim Sørensen
2ebbdf45f8
Handle add-on issues ( #69897 )
2022-04-12 11:00:55 +02:00
Joakim Sørensen
a5dc95e715
Fix adding OS entities for supervised installations ( #69539 )
2022-04-07 13:34:20 +02:00
Joakim Sørensen
cfdfa3eab2
Make hassio coordinator refresh data ( #69272 )
2022-04-04 17:34:06 +02:00
Joakim Sørensen
78e4d7e1ca
Add auto_update property to supervisor and addon update entities ( #69055 )
2022-04-01 08:31:39 -07:00
Joakim Sørensen
618b16a32b
Add full release notes to add-on update entities ( #68876 )
2022-03-30 09:52:29 +02:00
Joakim Sørensen
d17f8e9ed6
Add update platform to the Supervisor integration ( #68475 )
2022-03-22 12:21:12 +01:00
Joakim Sørensen
49aabcb2ac
Add homeassistant to partial backup service ( #67117 )
2022-02-23 08:38:52 -08:00
Franck Nijhof
3afadf8adb
Revert "Block peer certs on supervisor" ( #67104 )
2022-02-23 12:32:07 +01:00
Paulus Schoutsen
938b64081b
Block peer certs on supervisor ( #66837 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-02-22 13:59:40 -08:00
Franck Nijhof
20bdcc7fff
Replace hass.helpers: async_get_clientsession() ( #63910 )
2022-01-11 17:33:50 +01:00
epenet
358922db56
Use dataclass for HassioServiceInfo ( #60824 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 14:05:56 +01:00
Joakim Sørensen
d784c8dd1a
Remove Supervisor panel title and icon ( #60894 )
2021-12-03 10:35:57 +01:00
epenet
0723b1c539
Introduce HassioServiceInfo ( #60844 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-02 11:17:54 -08:00
Joakim Sørensen
737dd6fc26
Add tests to hassio binary_sensor platform ( #60609 )
2021-12-01 21:41:31 +01:00
Joakim Sørensen
8a5df5f7eb
Fix ingress for non admin ( #60120 )
2021-11-29 23:03:16 +01:00
Joakim Sørensen
f15840e7ff
Limit add-on stats to add-ons that are running ( #58479 )
2021-10-26 19:58:17 +02:00
Ville Skyttä
b52c5c82b1
Use http.HTTPStatus in components/[gh]* ( #58246 )
2021-10-23 20:34:53 +02:00
avee87
a0bb2c8b33
Add memory/cpu percentage to Supervisor addons entities ( #57468 )
...
* Add memory/cpu percentage to Supervisor addons entities
* fixed lint
* Use a single update function. Fixed tests
* use constant
* review comments
* oops
2021-10-22 12:23:21 +02:00
Joakim Sørensen
24509503bb
Remove snapshot from hassio integration ( #57652 )
2021-10-14 10:00:44 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Joakim Sørensen
6a9b484f2d
Remove timeout for backup services ( #56763 )
2021-09-29 09:46:05 +02:00
Joakim Sørensen
3e38dc0fd9
Add cache-control headers to supervisor entrypoint ( #55493 )
2021-08-31 14:45:28 +02:00
Joakim Sørensen
56360feb9a
Stream API requests to the supervisor ( #53909 )
2021-08-03 16:48:22 +02:00
Joakim Sørensen
da3419945c
Rename snapshot -> backup ( #53851 )
2021-08-02 11:07:21 +02:00
Joakim Sørensen
a9722c90e9
Revert "Rename snapshot -> backup" ( #53751 )
...
This reverts commit 9806bda272
.
2021-07-30 12:44:10 -07:00
Paulus Schoutsen
6b7a4d2d3c
Revert "Allow uploading large snapshots ( #53528 )" ( #53729 )
...
This reverts commit cdce14d63d
.
2021-07-29 14:26:05 -07:00
Stephen Beechen
cdce14d63d
Allow uploading large snapshots ( #53528 )
...
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-07-28 22:12:59 -07:00
Joakim Sørensen
9806bda272
Rename snapshot -> backup ( #51629 )
2021-07-27 22:43:05 +02:00
Joakim Sørensen
519efd2723
Handle missing peername ( #53052 )
...
* Handle missing peername
* Add test
2021-07-15 14:16:30 +02:00
Joakim Sørensen
c8755cd896
Migrate the name for the hassio user ( #51771 )
2021-06-14 09:01:18 -07:00
Joakim Sørensen
8ed8747225
Resolve addon repository slug for device registry ( #51287 )
...
* Resolve addon repository slug for device registry
* typo
* Adjust onboarding test
* Use /store
2021-05-31 14:06:11 +02:00
Joakim Sørensen
a5806b59f2
Raise HassioAPIError when error is returned ( #49418 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-19 08:23:43 -07:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
Franck Nijhof
e63e8b6ffe
Rename hassio config entry title to Supervisor ( #48748 )
2021-04-07 00:46:47 +02:00
Joakim Sørensen
09c51da3a2
Add analytics integration ( #48256 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-29 17:20:11 -07:00
Franck Nijhof
08870690a6
Fix a collection of tests with missing asserts ( #48127 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-20 17:23:55 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Raman Gupta
3c290c9a44
Address late hassio review ( #47229 )
...
* hassio code cleanup to address comments in #46342
* fix code
2021-03-01 12:10:51 -05:00
Raman Gupta
0592309b65
Add hassio addon_update service and hassio config entry with addon and OS devices and entities ( #46342 )
...
* add addon_update service, use config flow to set up config entry, create disabled sensors
* move most of entity logic to common entity class, improve device info, get rid of config_flow user step
* fix setup logic
* additional refactor
* fix refactored logic
* fix config flow tests
* add test for addon_update service and get_addons_info
* add entry setup and unload test and fix update coordinator
* handle if entry setup calls unload
* return nothing for coordinator if entry is being reloaded because coordinator will get recreated anyway
* remove entry when HA instance is no longer hassio and add corresponding test
* handle adding and removing device registry entries
* better config entry reload logic
* fix comment
* bugfix
* fix flake error
* switch pass to return
* use repository attribute for model and fallback to url
* use custom 'system' source since hassio source is misleading
* Update homeassistant/components/hassio/entity.py
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
* update remove addons function name
* Update homeassistant/components/hassio/__init__.py
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
* fix import
* pop coordinator after unload
* additional fixes
* always pass in sensor name when creating entity
* prefix one more function with async and fix tests
* use supervisor info for addons since list is already filtered on what's installed
* remove unused service
* update sensor names
* remove added handler function
* use walrus
* add OS device and sensors
* fix
* re-add addon_update service schema
* add more test coverage and exclude entities from tests
* check if instance is using hass OS in order to create OS entities
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-01 09:41:04 +01:00
Joakim Sørensen
7d90cdea1e
Use dispatch instead of eventbus for supervisor events ( #46986 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-02-25 19:52:11 +01:00
Joakim Sørensen
886067a327
Add websocket handlers to hassio ( #46571 )
2021-02-15 18:18:45 +01:00
Sergio Oller
905100a189
Disambiguate Supervisor HTTPUnauthorized on user/password validation ( #44940 )
...
* Disambiguate HTTPUnauthorized on user/password validation
The HA core API usually returns 401 when the request does not
have proper authentication tokens or they have expired.
However the user/password validation endpoint may also return
401 when the given user/password is invalid.
The supervisor is currently unable to distinguish both scenarios,
and it needs to.
See https://github.com/home-assistant/supervisor/issues/2408
* Return 404 if user& password are not found/valid
* Fix test for invalid user/password
2021-01-08 17:28:22 +01:00
Joakim Sørensen
d99bc99d9b
Prefix versions in system health ( #44921 )
...
* Prefix versions in system health
* Adjust test
* Update homeassistant/components/hassio/strings.json
2021-01-08 16:03:06 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Joakim Sørensen
403514ccb3
Add system health section for the Supervisor ( #43074 )
2020-11-11 20:12:24 +01:00
Paulus Schoutsen
7027b01a29
Fix broken time trigger test ( #42606 )
2020-10-29 22:34:06 +01:00
Joakim Sørensen
1f07a4eba0
Forward client headers for proxied stream responses ( #41663 )
2020-10-15 11:01:37 +02:00
Joakim Sørensen
953f6bad46
Allow non-authenticated calls to supervisor logs during onboarding ( #40617 )
2020-09-28 10:10:10 +02:00
Joakim Sørensen
a42736e437
Allow non-authenticated calls to snapshots during onboarding ( #40582 )
2020-09-26 09:26:02 +02:00
Joakim Sørensen
2d429ea678
Add modifications for snapshot uploads ( #40503 )
...
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-09-25 10:02:26 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
9979e465aa
Fix hassio auth data ( #39244 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-25 14:22:50 +02:00
Franck Nijhof
5f95b5caaf
Fix lastest version in updater for Supervisor enabled installs ( #38773 )
...
* Fix lastest version in update for Supervisor enabled installs
* Fix updater tests
2020-08-12 08:00:38 +02:00
Paulus Schoutsen
de12c21ce7
Fire config changed event during start ( #36812 )
2020-06-15 15:22:53 -07:00
J. Nick Koston
578d4a9b6a
Make the frontend available sooner (Part 1 of 2) ( #36263 )
...
* Part 1 of 2 (no breaking changes in part 1).
When integrations configured via the UI block startup or fail to start,
the webserver can remain offline which make it is impossible
to recover without manually changing files in
.storage since the UI is not available.
This change is the foundation that part 2 will build on
and enable a listener to start the webserver when the frontend
is finished loading.
Frontend Changes (home-assistant/frontend#6068 )
* Address review comments
* bump timeout to 1800s, adjust comment
* bump timeout to 4h
* remove timeout failsafe
* and the test
2020-06-02 13:54:11 -05:00
Pascal Vizeli
ed014e3c96
Revert "Ensure frontend is available if integrations fail to start - Part 1 of 2 ( #36093 )" ( #36251 )
...
This reverts commit fbe7b4ddfa
.
2020-05-29 10:18:39 +02:00
J. Nick Koston
fbe7b4ddfa
Ensure frontend is available if integrations fail to start - Part 1 of 2 ( #36093 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-05-28 21:09:07 -07:00
Ohad Levy
3ac376ebca
Fix hassio log message typo ( #36194 )
...
minor contribution - thanks for HA :)
2020-05-27 23:07:30 +02:00
Franck Nijhof
eddb5c6c3f
Add more system information from Supervisor ( #35560 )
2020-05-12 15:27:34 -07:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
0d700f6a63
Fix tests for Python 3.8 ( #34672 )
2020-04-25 14:32:55 -07:00
springstan
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
Franck Nijhof
d7e9959442
String formatting improvements for tests (2) ( #33666 )
2020-04-05 00:33:07 +02:00
Franck Nijhof
431a3a6b44
Re-branding of Hass.io panel to Supervisor ( #31480 )
2020-02-05 11:04:17 +01:00
Joakim Sørensen
a5a69bdf71
Adds icon endpoint to NO_AUTH ( #30910 )
...
* Adds icon endpoint to NO_AUTH
* Add test for no_auth icon get
* Blackout
2020-01-17 13:54:28 -08:00