Skip to content

Commit

Permalink
Set entity description (#34)
Browse files Browse the repository at this point in the history
* Set entity description

* Update custom_components/matter_experimental/entity.py

Co-authored-by: Stefan Agner <[email protected]>
  • Loading branch information
balloob and agners authored Jun 19, 2022
1 parent 7ad6d4b commit c964e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/matter_experimental/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class MatterEntity(entity.Entity):
def __init__(self, device: MatterDevice, mapping: DeviceMapping) -> None:
self._device = device
self._device_mapping = mapping
if mapping.entity_description:
self.entity_description = mapping.entity_description
self._attr_unique_id = f"{device.node.matter.client.server_info.compressedFabricId}-{device.node.unique_id}-{device.endpoint_id}-{device.device_type.device_type}"

@property
Expand Down

0 comments on commit c964e7d

Please sign in to comment.