mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix entity cleanup and naming bugs in ISY994 (#86023)
This commit is contained in:
parent
6a89b3a135
commit
b229347625
@ -74,7 +74,7 @@ async def async_setup_entry(
|
||||
ISYNodeQueryButtonEntity(
|
||||
node=isy,
|
||||
name="Query",
|
||||
unique_id=isy.uuid,
|
||||
unique_id=f"{isy.uuid}_query",
|
||||
device_info=DeviceInfo(identifiers={(DOMAIN, isy.uuid)}),
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
)
|
||||
|
@ -94,7 +94,7 @@ class ISYNodeEntity(ISYEntity):
|
||||
) -> None:
|
||||
"""Initialize the ISY/IoX node entity."""
|
||||
super().__init__(node, device_info=device_info)
|
||||
if node.address == node.primary_node:
|
||||
if hasattr(node, "parent_node") and node.parent_node is None:
|
||||
self._attr_has_entity_name = True
|
||||
self._attr_name = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user