Tweak handling of entities with has_entity_name
set (#74948)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
da027fa390
commit
2e228b2608
4 changed files with 33 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue