Skip to content

Commit

Permalink
Fix Aseko binary sensors names (home-assistant#116251)
Browse files Browse the repository at this point in the history
* Fix Aseko binary sensors names

* Fix add missing key to strings.json

* Fix remove setting shorthand translation key attribute

* Update homeassistant/components/aseko_pool_live/strings.json

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
  • Loading branch information
hopkins-tk and joostlek authored Apr 27, 2024
1 parent b403c9f commit a37d274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/aseko_pool_live/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class AsekoBinarySensorEntityDescription(BinarySensorEntityDescription):
),
AsekoBinarySensorEntityDescription(
key="has_error",
translation_key="error",
value_fn=lambda unit: unit.has_error,
device_class=BinarySensorDeviceClass.PROBLEM,
),
Expand Down Expand Up @@ -78,7 +79,6 @@ def __init__(
"""Initialize the unit binary sensor."""
super().__init__(unit, coordinator)
self.entity_description = entity_description
self._attr_name = f"{self._device_name} {entity_description.name}"
self._attr_unique_id = f"{self._unit.serial_number}_{entity_description.key}"

@property
Expand Down

0 comments on commit a37d274

Please sign in to comment.