Tweak handling of entities with has_entity_name set (#74948)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Erik Montnemery 2022-07-12 00:10:53 +02:00 committed by GitHub
parent da027fa390
commit 2e228b2608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 22 deletions

View file

@ -1194,6 +1194,7 @@ async def test_entity_info_added_to_entity_registry(hass):
capability_attributes={"max": 100},
device_class="mock-device-class",
entity_category=EntityCategory.CONFIG,
has_entity_name=True,
icon="nice:icon",
name="best name",
supported_features=5,
@ -1213,6 +1214,7 @@ async def test_entity_info_added_to_entity_registry(hass):
capabilities={"max": 100},
device_class=None,
entity_category=EntityCategory.CONFIG,
has_entity_name=True,
icon=None,
id=ANY,
name=None,