From 31fc76f79bcf9df2081add1ff41bca805a6ea6fe Mon Sep 17 00:00:00 2001 From: Manu Date: Mon, 21 Sep 2026 08:49:22 +0200 Subject: [PATCH] Add additional image entities to Xbox integration (#182775) --- homeassistant/components/xbox/image.py | 67 ++ homeassistant/components/xbox/strings.json | 18 + .../components/xbox/snapshots/test_image.ambr | 936 ++++++++++++++++++ 3 files changed, 1021 insertions(+) diff --git a/homeassistant/components/xbox/image.py b/homeassistant/components/xbox/image.py index cb1a6b2d83ef..8462718950d0 100644 --- a/homeassistant/components/xbox/image.py +++ b/homeassistant/components/xbox/image.py @@ -25,6 +25,12 @@ class XboxImage(StrEnum): NOW_PLAYING = "now_playing" GAMERPIC = "gamerpic" AVATAR = "avatar" + POSTER = "poster" + BRANDED_KEY_ART = "branded_key_art" + TITLED_HERO_ART = "titled_hero_art" + SUPER_HERO_ART = "super_hero_art" + BOX_ART = "box_art" + FEATURE_PROMOTIONAL_SQUARE_ART = "feature_promotional_square_art" @dataclass(kw_only=True, frozen=True) @@ -45,6 +51,67 @@ IMAGE_DESCRIPTIONS: tuple[XboxImageEntityDescription, ...] = ( translation_key=XboxImage.NOW_PLAYING, image_url_fn=lambda _, title: title.display_image if title else None, ), + XboxImageEntityDescription( + key=XboxImage.POSTER, + translation_key=XboxImage.POSTER, + image_url_fn=lambda _, title: ( + next((img.url for img in title.images if img.type == "Poster"), None) + if title and title.images + else None + ), + ), + XboxImageEntityDescription( + key=XboxImage.BRANDED_KEY_ART, + translation_key=XboxImage.BRANDED_KEY_ART, + image_url_fn=lambda _, title: ( + next((img.url for img in title.images if img.type == "BrandedKeyArt"), None) + if title and title.images + else None + ), + ), + XboxImageEntityDescription( + key=XboxImage.TITLED_HERO_ART, + translation_key=XboxImage.TITLED_HERO_ART, + image_url_fn=lambda _, title: ( + next((img.url for img in title.images if img.type == "TitledHeroArt"), None) + if title and title.images + else None + ), + ), + XboxImageEntityDescription( + key=XboxImage.SUPER_HERO_ART, + translation_key=XboxImage.SUPER_HERO_ART, + image_url_fn=lambda _, title: ( + next((img.url for img in title.images if img.type == "SuperHeroArt"), None) + if title and title.images + else None + ), + ), + XboxImageEntityDescription( + key=XboxImage.BOX_ART, + translation_key=XboxImage.BOX_ART, + image_url_fn=lambda _, title: ( + next((img.url for img in title.images if img.type == "BoxArt"), None) + if title and title.images + else None + ), + ), + XboxImageEntityDescription( + key=XboxImage.FEATURE_PROMOTIONAL_SQUARE_ART, + translation_key=XboxImage.FEATURE_PROMOTIONAL_SQUARE_ART, + image_url_fn=lambda _, title: ( + next( + ( + img.url + for img in title.images + if img.type == "FeaturePromotionalSquareArt" + ), + None, + ) + if title and title.images + else None + ), + ), XboxImageEntityDescription( key=XboxImage.AVATAR, translation_key=XboxImage.AVATAR, diff --git a/homeassistant/components/xbox/strings.json b/homeassistant/components/xbox/strings.json index 4008026bef06..cccafd9f9efa 100644 --- a/homeassistant/components/xbox/strings.json +++ b/homeassistant/components/xbox/strings.json @@ -83,11 +83,29 @@ "avatar": { "name": "Avatar" }, + "box_art": { + "name": "Box art" + }, + "branded_key_art": { + "name": "Branded key art" + }, + "feature_promotional_square_art": { + "name": "Feature promotional square art" + }, "gamerpic": { "name": "Gamerpic" }, "now_playing": { "name": "[%key:component::xbox::entity::sensor::now_playing::name%]" + }, + "poster": { + "name": "Poster" + }, + "super_hero_art": { + "name": "Superhero art" + }, + "titled_hero_art": { + "name": "Titled hero art" } }, "sensor": { diff --git a/tests/components/xbox/snapshots/test_image.ambr b/tests/components/xbox/snapshots/test_image.ambr index 29f3f7214b5a..6458dee71865 100644 --- a/tests/components/xbox/snapshots/test_image.ambr +++ b/tests/components/xbox/snapshots/test_image.ambr @@ -51,6 +51,162 @@ 'state': '2013-12-13T12:13:12+00:00', }) # --- +# name: test_image_platform[image.erics273_box_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.erics273_box_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Box art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Box art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274913657542_box_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.erics273_box_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.erics273_box_art?token=520', + : 'erics273 Box art', + }), + 'context': , + 'entity_id': 'image.erics273_box_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.erics273_branded_key_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.erics273_branded_key_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Branded key art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Branded key art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274913657542_branded_key_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.erics273_branded_key_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.erics273_branded_key_art?token=520', + : 'erics273 Branded key art', + }), + 'context': , + 'entity_id': 'image.erics273_branded_key_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.erics273_feature_promotional_square_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.erics273_feature_promotional_square_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Feature promotional square art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Feature promotional square art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274913657542_feature_promotional_square_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.erics273_feature_promotional_square_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.erics273_feature_promotional_square_art?token=520', + : 'erics273 Feature promotional square art', + }), + 'context': , + 'entity_id': 'image.erics273_feature_promotional_square_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- # name: test_image_platform[image.erics273_gamerpic-entry] EntityRegistryEntrySnapshot({ 'aliases': list([ @@ -155,6 +311,162 @@ 'state': '2013-12-13T12:13:12+00:00', }) # --- +# name: test_image_platform[image.erics273_poster-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.erics273_poster', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Poster', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Poster', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274913657542_poster', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.erics273_poster-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.erics273_poster?token=520', + : 'erics273 Poster', + }), + 'context': , + 'entity_id': 'image.erics273_poster', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.erics273_superhero_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.erics273_superhero_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Superhero art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Superhero art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274913657542_super_hero_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.erics273_superhero_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.erics273_superhero_art?token=520', + : 'erics273 Superhero art', + }), + 'context': , + 'entity_id': 'image.erics273_superhero_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.erics273_titled_hero_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.erics273_titled_hero_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Titled hero art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Titled hero art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274913657542_titled_hero_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.erics273_titled_hero_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.erics273_titled_hero_art?token=520', + : 'erics273 Titled hero art', + }), + 'context': , + 'entity_id': 'image.erics273_titled_hero_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- # name: test_image_platform[image.gsr_ae_avatar-entry] EntityRegistryEntrySnapshot({ 'aliases': list([ @@ -207,6 +519,162 @@ 'state': '2013-12-13T12:13:12+00:00', }) # --- +# name: test_image_platform[image.gsr_ae_box_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.gsr_ae_box_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Box art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Box art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '271958441785640_box_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.gsr_ae_box_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.gsr_ae_box_art?token=520', + : 'GSR Ae Box art', + }), + 'context': , + 'entity_id': 'image.gsr_ae_box_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.gsr_ae_branded_key_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.gsr_ae_branded_key_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Branded key art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Branded key art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '271958441785640_branded_key_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.gsr_ae_branded_key_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.gsr_ae_branded_key_art?token=520', + : 'GSR Ae Branded key art', + }), + 'context': , + 'entity_id': 'image.gsr_ae_branded_key_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.gsr_ae_feature_promotional_square_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.gsr_ae_feature_promotional_square_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Feature promotional square art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Feature promotional square art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '271958441785640_feature_promotional_square_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.gsr_ae_feature_promotional_square_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.gsr_ae_feature_promotional_square_art?token=520', + : 'GSR Ae Feature promotional square art', + }), + 'context': , + 'entity_id': 'image.gsr_ae_feature_promotional_square_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- # name: test_image_platform[image.gsr_ae_gamerpic-entry] EntityRegistryEntrySnapshot({ 'aliases': list([ @@ -311,6 +779,162 @@ 'state': '2013-12-13T12:13:12+00:00', }) # --- +# name: test_image_platform[image.gsr_ae_poster-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.gsr_ae_poster', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Poster', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Poster', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '271958441785640_poster', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.gsr_ae_poster-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.gsr_ae_poster?token=520', + : 'GSR Ae Poster', + }), + 'context': , + 'entity_id': 'image.gsr_ae_poster', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.gsr_ae_superhero_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.gsr_ae_superhero_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Superhero art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Superhero art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '271958441785640_super_hero_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.gsr_ae_superhero_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.gsr_ae_superhero_art?token=520', + : 'GSR Ae Superhero art', + }), + 'context': , + 'entity_id': 'image.gsr_ae_superhero_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.gsr_ae_titled_hero_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.gsr_ae_titled_hero_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Titled hero art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Titled hero art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '271958441785640_titled_hero_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.gsr_ae_titled_hero_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.gsr_ae_titled_hero_art?token=520', + : 'GSR Ae Titled hero art', + }), + 'context': , + 'entity_id': 'image.gsr_ae_titled_hero_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- # name: test_image_platform[image.ikken_hissatsuu_avatar-entry] EntityRegistryEntrySnapshot({ 'aliases': list([ @@ -363,6 +987,162 @@ 'state': '2013-12-13T12:13:12+00:00', }) # --- +# name: test_image_platform[image.ikken_hissatsuu_box_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.ikken_hissatsuu_box_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Box art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Box art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274838782903_box_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_box_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.ikken_hissatsuu_box_art?token=520', + : 'Ikken Hissatsuu Box art', + }), + 'context': , + 'entity_id': 'image.ikken_hissatsuu_box_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_branded_key_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.ikken_hissatsuu_branded_key_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Branded key art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Branded key art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274838782903_branded_key_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_branded_key_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.ikken_hissatsuu_branded_key_art?token=520', + : 'Ikken Hissatsuu Branded key art', + }), + 'context': , + 'entity_id': 'image.ikken_hissatsuu_branded_key_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_feature_promotional_square_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.ikken_hissatsuu_feature_promotional_square_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Feature promotional square art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Feature promotional square art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274838782903_feature_promotional_square_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_feature_promotional_square_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.ikken_hissatsuu_feature_promotional_square_art?token=520', + : 'Ikken Hissatsuu Feature promotional square art', + }), + 'context': , + 'entity_id': 'image.ikken_hissatsuu_feature_promotional_square_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- # name: test_image_platform[image.ikken_hissatsuu_gamerpic-entry] EntityRegistryEntrySnapshot({ 'aliases': list([ @@ -467,3 +1247,159 @@ 'state': '2013-12-13T12:13:12+00:00', }) # --- +# name: test_image_platform[image.ikken_hissatsuu_poster-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.ikken_hissatsuu_poster', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Poster', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Poster', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274838782903_poster', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_poster-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.ikken_hissatsuu_poster?token=520', + : 'Ikken Hissatsuu Poster', + }), + 'context': , + 'entity_id': 'image.ikken_hissatsuu_poster', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_superhero_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.ikken_hissatsuu_superhero_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Superhero art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Superhero art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274838782903_super_hero_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_superhero_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.ikken_hissatsuu_superhero_art?token=520', + : 'Ikken Hissatsuu Superhero art', + }), + 'context': , + 'entity_id': 'image.ikken_hissatsuu_superhero_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_titled_hero_art-entry] + EntityRegistryEntrySnapshot({ + 'aliases': list([ + None, + ]), + 'area_id': None, + 'capabilities': None, + 'config_entry_id': , + 'config_subentry_id': , + 'device_class': None, + 'device_id': , + 'disabled_by': None, + 'domain': 'image', + 'entity_category': None, + 'entity_id': 'image.ikken_hissatsuu_titled_hero_art', + 'has_entity_name': True, + 'hidden_by': None, + 'icon': None, + 'id': , + 'labels': set({ + }), + 'name': None, + 'object_id_base': 'Titled hero art', + 'options': dict({ + }), + 'original_device_class': None, + 'original_icon': None, + 'original_name': 'Titled hero art', + 'platform': 'xbox', + 'previous_unique_id': None, + 'suggested_object_id': None, + 'supported_features': 0, + 'translation_key': , + 'unique_id': '2533274838782903_titled_hero_art', + 'unit_of_measurement': None, + }) +# --- +# name: test_image_platform[image.ikken_hissatsuu_titled_hero_art-state] + StateSnapshot({ + 'attributes': ReadOnlyDict({ + : '520', + : '/api/image_proxy/image.ikken_hissatsuu_titled_hero_art?token=520', + : 'Ikken Hissatsuu Titled hero art', + }), + 'context': , + 'entity_id': 'image.ikken_hissatsuu_titled_hero_art', + 'last_changed': , + 'last_reported': , + 'last_updated': , + 'state': '2013-12-13T12:13:12+00:00', + }) +# ---