core/homeassistant
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
..
auth Update pylint (#47205) 2021-02-28 22:09:01 -10:00
components Add hassio addon_update service and hassio config entry with addon and OS devices and entities (#46342) 2021-03-01 09:41:04 +01:00
generated Clean up discovery integration (#47022) 2021-02-25 12:19:21 +01:00
helpers Update pylint (#47205) 2021-02-28 22:09:01 -10:00
scripts Remove deprecated credstash + keyring (#47033) 2021-02-25 09:48:19 +01:00
util Provide a human readable exception for the percentage util (#47121) 2021-02-26 16:33:13 -08:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py Ensure HomeAssistant can still restart when a library file is missing (#46664) 2021-02-19 22:22:48 -08:00
config_entries.py Add support for disabling config entries (#46779) 2021-02-20 19:21:39 -08:00
const.py Convert discovery helper to use dispatcher (#47008) 2021-02-24 13:37:31 -08:00
core.py Update pylint (#47205) 2021-02-28 22:09:01 -10:00
data_entry_flow.py
exceptions.py Handle ConditionError with multiple entity_id for state/numeric_state (#46855) 2021-02-22 08:11:59 +01:00
loader.py Fix flip-flopped substitutions in Custom Version Type Warning message. (#46768) 2021-02-19 03:00:14 +01:00
package_constraints.txt Update frontend to 20210226.0 (#47123) 2021-02-26 16:32:51 -08:00
requirements.py
runner.py
setup.py
strings.json