Commit graph

74 commits

Author SHA1 Message Date
Erik Montnemery
f9b2e10f72
Add new board type () 2023-08-30 16:37:13 +02:00
Mike Degatano
e0eb63c588
Validate slug in addon services ()
* Validate slug in addon services

* Move validator into hassio component

* Fixes from mypy

* Fix test for changes

* Adjust fixtures to current supervisor

* Fix call counts after fixture adjustment

* Increase coverage
2023-08-29 13:57:41 -04:00
Franck Nijhof
1a9e27cdaf
Allow integrations to register custom config panels () 2023-07-18 11:35:44 +02:00
Joakim Sørensen
889f3c36fc
Adjust default name in backup service calls to match documentation () 2023-06-13 11:41:53 +02:00
Mike Degatano
08a719e09e
Add backup location and mount failed repair ()
* Add backup location and mount failed repair

* Fix coverage

* Change storage_location to backup_location

* Use backticks

* Update homeassistant/helpers/selector.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-24 10:33:41 +02:00
Erik Montnemery
6739542a5d
Simplify some multi pan code ()
* Simplify some multi pan code

* Adjust ZHA config flow
2023-03-23 09:18:35 +01:00
Joakim Sørensen
11e21378b1
Add sensors for supervisor host ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-03-13 15:39:49 +01:00
Joakim Sørensen
4f29e1e180
Add stats sensors for core and supervisor ()
* Add stats sensors for core and supervisor

* Update homeassistant/components/hassio/__init__.py
2023-03-09 19:06:35 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* 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) () 2023-02-13 14:22:49 +01:00
epenet
89e4ee5320
Add type hints to integration tests (part 8) () 2023-02-13 11:13:48 +01:00
epenet
37a2040d7b
Add type hints to integration tests (h-i) () 2023-02-08 18:12:56 +01:00
Franck Nijhof
57cf11f067
Enable Ruff PT015 () 2023-01-27 11:10:29 +01:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 () 2023-01-26 18:05:05 +01:00
Erik Montnemery
f17a829bd8
Only wait for import flows to initialize at setup ()
* 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
Mike Degatano
82151bfd40
Create repairs for unsupported and unhealthy () 2022-10-31 09:57:54 -04:00
Mike Degatano
416c10a793
Supervisor update entity auto update from api ()
* Supervisor update entity auto update from api

* Update api mocks in tests
2022-10-05 08:27:56 +02:00
Martin Hjelmare
842cc060f8
Fix zwave_js addon info ()
* 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 ()
* 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 ()
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 ()
* 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 () 2022-05-30 12:00:13 +02:00
Erik Montnemery
2bc093a04d
Hardware integration MVP () 2022-05-25 20:39:15 +02:00
Joakim Sørensen
ae9315aa29
Limit Supervisor refresh updates () 2022-04-15 09:31:02 -07:00
Joakim Sørensen
a5dc95e715
Fix adding OS entities for supervised installations () 2022-04-07 13:34:20 +02:00
Joakim Sørensen
cfdfa3eab2
Make hassio coordinator refresh data () 2022-04-04 17:34:06 +02:00
Joakim Sørensen
78e4d7e1ca
Add auto_update property to supervisor and addon update entities () 2022-04-01 08:31:39 -07:00
Joakim Sørensen
d17f8e9ed6
Add update platform to the Supervisor integration () 2022-03-22 12:21:12 +01:00
Joakim Sørensen
49aabcb2ac
Add homeassistant to partial backup service () 2022-02-23 08:38:52 -08:00
Franck Nijhof
3afadf8adb
Revert "Block peer certs on supervisor" () 2022-02-23 12:32:07 +01:00
Paulus Schoutsen
938b64081b
Block peer certs on supervisor ()
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
Joakim Sørensen
d784c8dd1a
Remove Supervisor panel title and icon () 2021-12-03 10:35:57 +01:00
Joakim Sørensen
737dd6fc26
Add tests to hassio binary_sensor platform () 2021-12-01 21:41:31 +01:00
Joakim Sørensen
f15840e7ff
Limit add-on stats to add-ons that are running () 2021-10-26 19:58:17 +02:00
avee87
a0bb2c8b33
Add memory/cpu percentage to Supervisor addons entities ()
* 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 () 2021-10-14 10:00:44 +02:00
Joakim Sørensen
6a9b484f2d
Remove timeout for backup services () 2021-09-29 09:46:05 +02:00
Joakim Sørensen
da3419945c
Rename snapshot -> backup () 2021-08-02 11:07:21 +02:00
Joakim Sørensen
a9722c90e9
Revert "Rename snapshot -> backup" ()
This reverts commit 9806bda272.
2021-07-30 12:44:10 -07:00
Joakim Sørensen
9806bda272
Rename snapshot -> backup () 2021-07-27 22:43:05 +02:00
Joakim Sørensen
c8755cd896
Migrate the name for the hassio user () 2021-06-14 09:01:18 -07:00
Joakim Sørensen
8ed8747225
Resolve addon repository slug for device registry ()
* Resolve addon repository slug for device registry

* typo

* Adjust onboarding test

* Use /store
2021-05-31 14:06:11 +02:00
Raman Gupta
3c290c9a44
Address late hassio review ()
* hassio code cleanup to address comments in 

* 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 ()
* 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 ()
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 () 2021-02-15 18:18:45 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Joakim Sørensen
403514ccb3
Add system health section for the Supervisor () 2020-11-11 20:12:24 +01:00
Paulus Schoutsen
7027b01a29
Fix broken time trigger test () 2020-10-29 22:34:06 +01:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00