Files
core/homeassistant/components
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
..
2021-02-24 00:04:14 +00:00
2021-02-27 00:05:45 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-02-22 15:28:08 +01:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-02-26 00:06:13 +00:00
2021-02-28 22:09:01 -10:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2020-11-25 08:45:15 +01:00
2021-02-28 22:09:01 -10:00
2021-02-25 00:05:20 +00:00
2020-12-08 23:14:55 +01:00
2021-03-01 00:09:01 +00:00
2021-02-21 00:07:04 +00:00
2021-02-25 00:05:20 +00:00
2021-02-24 00:04:14 +00:00
2021-02-05 00:03:54 +00:00
2020-11-25 08:25:09 +01:00
2021-03-01 00:09:01 +00:00
2021-02-08 08:32:24 +01:00
2021-02-24 00:04:14 +00:00
2021-02-27 00:05:45 +00:00
2021-02-21 00:07:04 +00:00
2021-03-01 00:09:01 +00:00
2021-02-14 13:46:58 +01:00
2020-12-18 12:29:16 -07:00
2021-03-01 03:16:30 +01:00
2021-02-21 00:07:04 +00:00
2021-02-27 00:05:45 +00:00
2021-02-23 09:56:44 +01:00
2021-02-24 00:04:14 +00:00
2020-10-22 00:09:52 +00:00
2021-02-21 00:07:04 +00:00
2021-02-26 13:43:53 +01:00
2021-02-21 00:07:04 +00:00
2021-02-22 15:28:08 +01:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2021-02-23 09:56:44 +01:00
2020-10-06 15:02:23 +02:00
2020-11-04 00:13:14 +00:00
2021-02-23 00:05:06 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-27 00:05:45 +00:00
2021-02-08 14:44:46 +01:00
2021-02-24 00:04:14 +00:00
2021-02-23 00:05:06 +00:00
2021-02-23 23:32:39 +01:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2020-10-13 00:03:24 +00:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2021-02-23 09:56:44 +01:00
2021-02-23 00:05:06 +00:00
2020-10-17 11:35:23 -05:00
2021-02-25 00:05:20 +00:00
2021-02-24 00:04:14 +00:00
2021-02-23 00:05:06 +00:00
2020-11-16 18:53:42 +01:00
2020-11-25 08:45:15 +01:00
2021-03-01 00:09:01 +00:00
2021-02-22 15:28:08 +01:00
2020-11-25 08:45:15 +01:00
2021-02-25 00:05:20 +00:00
2021-02-23 00:05:06 +00:00
2021-02-23 00:05:06 +00:00
2021-02-25 00:05:20 +00:00
2021-02-08 11:26:57 +01:00
2021-02-21 00:07:04 +00:00
2021-02-23 00:05:06 +00:00
2021-03-01 00:09:01 +00:00
2020-10-06 15:02:23 +02:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-25 00:05:20 +00:00
2021-02-27 00:05:45 +00:00
2021-02-24 00:04:14 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-03-01 00:09:01 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-23 09:56:44 +01:00
2021-02-27 00:05:45 +00:00
2021-02-25 00:05:20 +00:00
2021-02-23 09:56:44 +01:00
2021-02-25 00:05:20 +00:00
2020-10-06 15:02:23 +02:00
2021-02-26 10:35:09 -06:00
2021-03-01 00:09:01 +00:00
2021-02-23 09:56:44 +01:00
2021-03-01 00:09:01 +00:00
2021-02-21 00:07:04 +00:00
2021-02-25 00:05:20 +00:00
2021-02-25 00:05:20 +00:00
2021-01-26 18:12:02 +01:00
2021-02-27 00:05:45 +00:00
2021-01-11 14:25:09 +01:00
2021-02-21 00:07:04 +00:00
2020-10-12 06:03:45 +02:00
2021-02-14 13:46:58 +01:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-28 22:09:01 -10:00
2021-02-21 00:07:04 +00:00
2021-03-01 00:09:01 +00:00
2021-03-01 00:09:01 +00:00
2021-02-28 22:09:01 -10:00
2021-02-27 00:05:45 +00:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-01-22 10:16:20 +01:00
2021-02-10 21:22:32 -05:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2020-10-20 03:03:35 +02:00
2021-01-11 14:25:09 +01:00
2021-03-01 00:09:01 +00:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-02-25 00:05:20 +00:00
2021-02-24 00:04:14 +00:00
2021-02-24 00:04:14 +00:00
2021-02-18 07:54:10 +01:00
2021-03-01 00:09:01 +00:00
2021-02-25 00:05:20 +00:00
2021-03-01 00:09:01 +00:00
2021-03-01 00:09:01 +00:00
2020-08-28 15:12:42 -05:00
2021-03-01 00:09:01 +00:00
2020-11-24 19:56:39 +01:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-23 00:05:06 +00:00
2021-02-24 00:04:14 +00:00
2021-02-14 13:46:58 +01:00
2021-02-21 00:07:04 +00:00
2021-02-03 11:46:49 +01:00
2021-02-28 14:16:37 +01:00
2021-03-01 00:09:01 +00:00
2021-02-08 14:44:46 +01:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2020-08-27 13:56:20 +02:00
2021-02-23 00:05:06 +00:00
2020-10-06 15:02:23 +02:00
2021-03-01 00:09:01 +00:00
2021-02-23 00:05:06 +00:00
2021-02-23 00:05:06 +00:00
2021-03-01 00:09:01 +00:00
2020-10-06 15:02:23 +02:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2020-10-06 15:02:23 +02:00
2021-02-25 00:05:20 +00:00
2021-01-04 11:46:58 +01:00
2020-10-17 14:05:22 +02:00
2021-02-23 00:05:06 +00:00
2021-02-03 11:46:49 +01:00
2021-02-24 00:04:14 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2020-09-10 20:47:15 +02:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2021-02-21 00:07:04 +00:00
2021-02-25 11:11:40 +01:00
2021-03-01 00:09:01 +00:00
2021-02-03 11:46:49 +01:00
2021-03-01 00:09:01 +00:00
2021-02-23 00:05:06 +00:00
2021-03-01 00:09:01 +00:00
2021-02-25 00:05:20 +00:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-02-24 00:04:14 +00:00
2021-02-14 13:46:58 +01:00
2021-01-26 18:12:02 +01:00
2021-02-24 00:04:14 +00:00
2021-01-26 18:12:02 +01:00
2021-02-23 00:05:06 +00:00
2021-02-27 00:05:45 +00:00
2021-02-22 15:28:08 +01:00
2021-02-03 11:46:49 +01:00
2021-02-24 00:04:14 +00:00
2021-02-23 00:05:06 +00:00
2021-02-27 00:05:45 +00:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-02-23 00:05:06 +00:00
2021-02-25 00:05:20 +00:00
2021-02-03 11:46:49 +01:00
2021-02-23 00:05:06 +00:00
2021-02-03 11:46:49 +01:00
2021-02-27 00:05:45 +00:00
2021-02-25 00:05:20 +00:00
2021-02-26 14:28:16 -08:00
2021-01-26 15:44:51 +01:00
2020-09-07 10:36:37 +02:00
2021-02-28 22:09:01 -10:00
2020-11-22 12:21:27 +01:00
2021-02-13 18:21:15 -05:00
2021-02-25 00:05:20 +00:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2021-03-01 00:09:01 +00:00
2021-02-23 07:14:39 +01:00
2021-02-03 11:46:49 +01:00
2021-02-25 00:05:20 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2020-11-23 08:05:22 -05:00
2021-02-26 00:06:13 +00:00
2021-02-25 00:05:20 +00:00
2021-02-27 00:05:45 +00:00
2021-02-24 00:04:14 +00:00
2021-02-25 00:05:20 +00:00
2021-02-27 00:05:45 +00:00
2021-02-01 16:03:51 -10:00
2021-02-23 00:05:06 +00:00
2021-02-24 00:04:14 +00:00
2021-02-28 22:09:01 -10:00
2021-03-01 00:09:01 +00:00
2020-08-18 15:23:14 +02:00
2021-02-03 11:46:49 +01:00
2021-02-27 00:05:45 +00:00
2021-02-03 11:46:49 +01:00
2021-02-03 11:46:49 +01:00
2021-02-28 17:48:23 +01:00
2021-01-27 22:37:59 +01:00
2021-02-28 22:09:01 -10:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2021-03-01 00:09:01 +00:00
2021-02-25 00:05:20 +00:00
2021-02-25 00:05:20 +00:00
2021-03-01 00:09:01 +00:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-24 13:43:24 +01:00
2021-03-01 00:09:01 +00:00
2021-02-24 00:04:14 +00:00
2021-02-24 00:04:14 +00:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2021-02-28 22:09:01 -10:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-28 14:41:06 +01:00
2021-02-14 22:21:55 +01:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-24 00:04:14 +00:00
2021-02-28 22:09:01 -10:00
2021-03-01 00:09:01 +00:00
2021-03-01 00:09:01 +00:00
2021-02-27 00:05:45 +00:00
2021-02-03 11:46:49 +01:00
2021-02-22 15:28:08 +01:00
2021-02-24 00:04:14 +00:00
2021-02-21 00:07:04 +00:00
2021-02-21 00:07:04 +00:00
2021-02-28 22:09:01 -10:00
2021-02-27 00:05:45 +00:00
2021-02-17 13:15:13 +01:00
2020-11-25 08:45:15 +01:00
2021-02-24 00:04:14 +00:00
2021-03-01 00:09:01 +00:00
2020-08-27 13:56:20 +02:00
2021-02-21 00:07:04 +00:00
2020-11-25 08:45:15 +01:00
2021-01-07 08:44:34 -10:00
2021-02-24 00:04:14 +00:00
2021-02-28 22:09:01 -10:00
2021-02-28 22:09:01 -10:00
2021-02-03 11:46:49 +01:00
2021-02-27 00:05:45 +00:00
2021-02-21 00:07:04 +00:00
2021-03-01 00:09:01 +00:00