Skip to content

Commit

Permalink
change entity name
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomes committed Aug 6, 2021
1 parent 1b0d634 commit 0036571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/erse/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def __init__(self, hass, entry_id, tariff, meter_entity):
self._attr_unit_of_measurement = CURRENCY_EURO
self._attr_last_reset = dt_util.utc_from_timestamp(0)

self._attr_name = f"{self.operator} {tariff} cost"
self._attr_unique_id = slugify(f"{entry_id} {meter_entity} {tariff} cost")
self._attr_name = f"{meter_entity} cost"
self._attr_unique_id = slugify(f"{entry_id} {meter_entity} cost")

self._tariff = tariff
self._meter_entity = meter_entity
Expand Down

0 comments on commit 0036571

Please sign in to comment.