Commit Graph

13 Commits (e39672078d259e4366a409f6258f6a0ef61fb58a)

Author SHA1 Message Date
Franck Nijhof b070bb8ef0
Migrate Supervisor integration to new entity naming style (#74906) 2022-07-10 13:05:54 -07:00
epenet 6540ba6239
Remove hassio from mypy ignore list (#74603)
* Remove hassio from mypy ignore list

* Avoid if TYPE_CHECKING
2022-07-07 15:14:36 +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 49f3a7ce46
Use device class enum in Supervisor (#60687) 2021-12-01 10:55:30 +01:00
Joakim Sørensen 153f15c93b
Remove running binary_sensor for HAOS (#60597) 2021-11-30 10:18:14 -08:00
Joakim Sørensen f15840e7ff
Limit add-on stats to add-ons that are running (#58479) 2021-10-26 19:58:17 +02:00
Joakim Sørensen 8b223be073
Add binary sensor to add-ons to show if they are running (#58120) 2021-10-26 00:21:44 +02:00
Joakim Sørensen a2c9cfbf41
Use entity descriptions for hassio entities (#54749) 2021-08-17 12:14:14 +02:00
Joakim Sørensen 789e6555cc
Add device class update to hassio update entities (#54733) 2021-08-17 08:30:55 +02:00
Ruslan Sayfutdinov 0301706fc6
Define AddEntitiesCallback type (#49812) 2021-04-29 12:28:14 +02:00
Marc Mueller 5cdd945f44
Update typing 08 (#48058) 2021-03-18 09:25:40 +01:00
Martin Hjelmare 099c9c59cb
Fix Supervisor platform coordinator data lookup (#47308) 2021-03-03 14:37:36 +01: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