Add icon to entity registry list for display (#108313)

This commit is contained in:
Franck Nijhof 2024-01-19 15:11:27 +01:00 committed by GitHub
parent 2e56d7d048
commit cdf3c07488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -160,6 +160,7 @@ async def test_list_entities_for_display(
entity_category=EntityCategory.DIAGNOSTIC,
entity_id="test_domain.test",
has_entity_name=True,
icon="mdi:icon",
original_name="Hello World",
platform="test_platform",
translation_key="translations_galore",
@ -170,6 +171,7 @@ async def test_list_entities_for_display(
device_id="device123",
entity_id="test_domain.nameless",
has_entity_name=True,
icon=None,
original_name=None,
platform="test_platform",
unique_id="2345",
@ -231,6 +233,7 @@ async def test_list_entities_for_display(
"ec": 1,
"ei": "test_domain.test",
"en": "Hello World",
"ic": "mdi:icon",
"pl": "test_platform",
"tk": "translations_galore",
},