Skip to content

Commit

Permalink
fix entity_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarv committed Mar 29, 2024
1 parent 4a466f3 commit 534a5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/lg_ess/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def __init__(
self._attr_unique_id = f"${device_info["serial_number"]}_${entity}"
# self._attr_unique_id = entity
self._attr_icon = icon
self.entity_id = f"sensor.${DOMAIN}_${key}"
self.entity_id = f"sensor.${DOMAIN}_${entity}"

@callback
def _handle_coordinator_update(self) -> None:
Expand Down Expand Up @@ -674,7 +674,7 @@ def __init__(
self._attr_unique_id = f"${device_info["serial_number"]}_${entity}"
# self._attr_unique_id = entity
self._attr_icon = icon
self.entity_id = f"binary_sensor.${DOMAIN}_${key}"
self.entity_id = f"binary_sensor.${DOMAIN}_${entity}"

@callback
def _handle_coordinator_update(self) -> None:
Expand Down

0 comments on commit 534a5e3

Please sign in to comment.