diff --git a/custom_components/hacs/base.py b/custom_components/hacs/base.py index 19b1aa1f07e..e50f4bb2138 100644 --- a/custom_components/hacs/base.py +++ b/custom_components/hacs/base.py @@ -800,7 +800,9 @@ async def async_load_hacs_from_github(self, _=None) -> None: try: repository = self.repositories.get_by_full_name(HacsGitHubRepo.INTEGRATION) + should_recreate_entities = False if repository is None: + should_recreate_entities = True await self.async_register_repository( repository_full_name=HacsGitHubRepo.INTEGRATION, category=HacsCategory.INTEGRATION, @@ -818,6 +820,9 @@ async def async_load_hacs_from_github(self, _=None) -> None: repository.data.new = False repository.data.releases = True + if should_recreate_entities: + await self.async_recreate_entities() + self.repository = repository.repository_object self.repositories.mark_default(repository) except HacsException as exception: diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_discard_invalid_repo_data.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_discard_invalid_repo_data.json index 0d7201a8f21..6466949a10d 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_discard_invalid_repo_data.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_discard_invalid_repo_data.json @@ -56,7 +56,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json index 0c46992e558..b1acc0f523b 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_post.json @@ -62,7 +62,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json index a12f2789790..642e03e38f0 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_remove_repository_pre.json @@ -73,7 +73,37 @@ "/config/appdaemon/apps/appdaemon-basic/__init__.py", "/config/appdaemon/apps/appdaemon-basic/example.py" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json index 916fcee9b6d..a8b98fbb995 100644 --- a/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/appdaemon-basic/test_update_repository_websocket.json @@ -89,7 +89,37 @@ "_directory": [ "/config/appdaemon/apps/appdaemon-basic/__init__.py" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_discard_invalid_repo_data.json b/tests/snapshots/hacs-test-org/integration-basic/test_discard_invalid_repo_data.json index b418a643157..9d9b2cb74c4 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_discard_invalid_repo_data.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_discard_invalid_repo_data.json @@ -52,7 +52,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json index 0c46992e558..b1acc0f523b 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_post.json @@ -62,7 +62,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json index 73c414e34f7..a6f64d1fb24 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_remove_repository_pre.json @@ -76,7 +76,37 @@ "/config/custom_components/example/manifest.json", "/config/custom_components/example/module/__init__.py" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json index 6bf0916e364..ab0c8bf7231 100644 --- a/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/integration-basic/test_update_repository_websocket.json @@ -93,7 +93,37 @@ "/config/custom_components/example/__init__.py", "/config/custom_components/example/manifest.json" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_discard_invalid_repo_data.json b/tests/snapshots/hacs-test-org/plugin-basic/test_discard_invalid_repo_data.json index c7d627dbe3b..d465f8f8735 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_discard_invalid_repo_data.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_discard_invalid_repo_data.json @@ -50,7 +50,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json index 0c46992e558..b1acc0f523b 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_post.json @@ -62,7 +62,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json index 42771186d4f..eb6ae750438 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_remove_repository_pre.json @@ -78,7 +78,37 @@ "/config/www/community/plugin-basic/example.js", "/config/www/community/plugin-basic/example.js.gz" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json index 99a76a976f9..3949a3b39e8 100644 --- a/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/plugin-basic/test_update_repository_websocket.json @@ -95,7 +95,37 @@ "/config/www/community/plugin-basic/plugin-basic.js", "/config/www/community/plugin-basic/plugin-basic.js.gz" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_discard_invalid_repo_data.json b/tests/snapshots/hacs-test-org/python_script-basic/test_discard_invalid_repo_data.json index 32292fae344..b52869c1114 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_discard_invalid_repo_data.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_discard_invalid_repo_data.json @@ -50,7 +50,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json index 0c46992e558..b1acc0f523b 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_post.json @@ -62,7 +62,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json index cc99d3bd040..3f6100df910 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_remove_repository_pre.json @@ -72,7 +72,37 @@ "_directory": [ "/config/python_scripts/example.py" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json index 4981d37ab04..45f0c4b7631 100644 --- a/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/python_script-basic/test_update_repository_websocket.json @@ -89,7 +89,37 @@ "_directory": [ "/config/python_scripts/example.py" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/template-basic/test_discard_invalid_repo_data.json b/tests/snapshots/hacs-test-org/template-basic/test_discard_invalid_repo_data.json index e14b09de213..7b7848a6ba6 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_discard_invalid_repo_data.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_discard_invalid_repo_data.json @@ -50,7 +50,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json index 0c46992e558..b1acc0f523b 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_post.json @@ -62,7 +62,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json index 568867a022e..b614ca9dcfd 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_remove_repository_pre.json @@ -72,7 +72,37 @@ "_directory": [ "/config/custom_templates/example.jinja" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json index 301e18dbb49..1d121025266 100644 --- a/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/template-basic/test_update_repository_websocket.json @@ -90,7 +90,37 @@ "_directory": [ "/config/custom_templates/example.jinja" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_discard_invalid_repo_data.json b/tests/snapshots/hacs-test-org/theme-basic/test_discard_invalid_repo_data.json index 3fcfaa02ef7..4a4e353d160 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_discard_invalid_repo_data.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_discard_invalid_repo_data.json @@ -50,7 +50,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json index 0c46992e558..b1acc0f523b 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_post.json @@ -62,7 +62,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json index 6a7932b4779..2b01ebad03c 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_remove_repository_pre.json @@ -72,7 +72,37 @@ "_directory": [ "/config/themes/example/example.yaml" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json b/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json index e13569dca27..338b3ff55ae 100644 --- a/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json +++ b/tests/snapshots/hacs-test-org/theme-basic/test_update_repository_websocket.json @@ -90,7 +90,37 @@ "_directory": [ "/config/themes/example/example.yaml" ], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false, diff --git a/tests/snapshots/test_integration_setup.json b/tests/snapshots/test_integration_setup.json index 0e272f52ad3..e43b0097d39 100644 --- a/tests/snapshots/test_integration_setup.json +++ b/tests/snapshots/test_integration_setup.json @@ -56,7 +56,37 @@ } }, "_directory": [], - "_entities": [], + "_entities": [ + { + "area_id": null, + "attributes": { + "auto_update": false, + "entity_picture": "https://brands.home-assistant.io/_/hacs/icon.png", + "friendly_name": "HACS update", + "in_progress": false, + "installed_version": "0.0.0", + "latest_version": "", + "release_summary": null, + "release_url": "https://github.com/hacs/integration/releases/", + "skipped_version": null, + "supported_features": 23, + "title": null + }, + "disabled_by": null, + "entity_category": "config", + "entity_id": "update.hacs_update", + "has_entity_name": false, + "hidden_by": null, + "icon": null, + "name": null, + "options": {}, + "original_name": "HACS update", + "platform": "hacs", + "state": "on", + "translation_key": null, + "unique_id": "172733314" + } + ], "_hacs": { "configuration": { "debug": false,