Skip to content

Commit

Permalink
Add names to Edilkamin binary sensors for improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
algra4 committed Dec 16, 2024
1 parent 1082c1c commit 171555c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/edilkamin/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(self, coordinator) -> None:
self._mac_address = self.coordinator.get_mac_address()
self._attr_icon = "mdi:storage-tank"

self._attr_name = "Tank"
self._attr_device_info = {"identifiers": {("edilkamin", self._mac_address)}}

@property
Expand Down Expand Up @@ -74,6 +75,7 @@ def __init__(self, api: EdilkaminAsyncApi) -> None:
self._api = api
self._mac_address = self._api.get_mac_address()

self._attr_name = "Check configuration"
self._attr_device_info = {"identifiers": {("edilkamin", self._mac_address)}}
self._attr_icon = "mdi:check-circle"

Expand Down

0 comments on commit 171555c

Please sign in to comment.