Skip to content

Commit

Permalink
Fix entity_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Nov 21, 2024
1 parent a65d072 commit 182e101
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/cz_energy_spot_prices/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self, hass: HomeAssistant, settings: SpotRateSettings, coordinator:
self._attr_unique_id = f'sensor.current_{trade.lower()}_electricity_cheapest_today'
self._attr_translation_key = f'{trade.lower()}_electricity_cheapest_today'

self.entity_id = f'sensor.{trade.lower()}_electricity_cheapest_today'
self.entity_id = f'sensor.{trade.lower()}_cheapest_electricity_today'

super().__init__(hass=hass, settings=settings, coordinator=coordinator, trade=trade)

Expand All @@ -314,7 +314,7 @@ def __init__(self, hass: HomeAssistant, settings: SpotRateSettings, coordinator:
self._attr_unique_id = f'sensor.current_{trade.lower()}_electricity_cheapest_tomorrow'
self._attr_translation_key = f'{trade.lower()}_electricity_cheapest_tomorrow'

self.entity_id = f'sensor.{trade.lower()}_electricity_cheapest_tomorrow'
self.entity_id = f'sensor.{trade.lower()}_cheapest_electricity_tomorrow'

super().__init__(hass=hass, settings=settings, coordinator=coordinator, trade=trade)

Expand All @@ -334,7 +334,7 @@ def __init__(self, hass: HomeAssistant, settings: SpotRateSettings, coordinator:
self._attr_unique_id = f'sensor.current_{trade.lower()}_electricity_most_expensive_today'
self._attr_translation_key = f'{trade.lower()}_electricity_most_expensive_today'

self.entity_id = f'sensor.{trade.lower()}_electricity_most_expensive_today'
self.entity_id = f'sensor.{trade.lower()}_most_expensive_electricity_today'

super().__init__(hass=hass, settings=settings, coordinator=coordinator, trade=trade)

Expand All @@ -351,7 +351,7 @@ def __init__(self, hass: HomeAssistant, settings: SpotRateSettings, coordinator:
self._attr_unique_id = f'sensor.current_{trade.lower()}_electricity_most_expensive_tomorrow'
self._attr_translation_key = f'{trade.lower()}_electricity_most_expensive_tomorrow'

self.entity_id = f'sensor.{trade.lower()}_electricity_most_expensive_tomorrow'
self.entity_id = f'sensor.{trade.lower()}_most_expensive_electricity_tomorrow'

super().__init__(hass=hass, settings=settings, coordinator=coordinator, trade=trade)

Expand Down

0 comments on commit 182e101

Please sign in to comment.