UPB explicit device name (#96042)

This commit is contained in:
Joost Lekkerkerker 2023-07-07 17:25:58 +02:00 committed by GitHub
parent 3fe180d55c
commit 7026ffe0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -49,9 +49,10 @@ async def async_setup_entry(
class UpbLight(UpbAttachedEntity, LightEntity):
"""Representation of an UPB Light."""
"""Representation of a UPB Light."""
_attr_has_entity_name = True
_attr_name = None
def __init__(self, element, unique_id, upb):
"""Initialize an UpbLight."""

View File

@ -47,7 +47,7 @@ async def async_setup_entry(
class UpbLink(UpbEntity, Scene):
"""Representation of an UPB Link."""
"""Representation of a UPB Link."""
def __init__(self, element, unique_id, upb):
"""Initialize the base of all UPB devices."""