Skip to content

Commit

Permalink
Sensor names have prefix now
Browse files Browse the repository at this point in the history
  • Loading branch information
c503ghosh committed Oct 27, 2024
1 parent b1abb0f commit c85b582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/dirigera_platform/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ def device_info(self) -> DeviceInfo:

@property
def name(self):

if self._name is None or len(self._name) == 0:
return self._device.name
return self._name
return f"{self._device.name} {self._name}"

@property
def entity_category(self):
Expand Down

0 comments on commit c85b582

Please sign in to comment.