BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
535 stars 49 forks source link

Cost tracker stops tracking if underlying entity id is changed #825

Open BottlecapDave opened 2 months ago

BottlecapDave commented 2 months ago

Describe the bug

If you change the id of the entity the cost tracker is tracking, then the cost tracker will stop tracking the cost

Reproduction steps

  1. Setup a cost tracker
  2. Update the entity id of the specified entity but don't update the config
  3. Have the tracked entity value change

Expected behaviour

The cost tracker should continue tracking the entity.

It looks like other integrations within HA achieve this by listening for the entity registry, then updating the config and reloading the entry.

Tariff Code

N/A

Integration Version

10.2.0

Home Assistant Version

2024.4.1

Fresh Install?

Not specified

Home Assistant Logs

NA

Confirmation

github-actions[bot] commented 1 month ago

This issue has become stale because it has been open for 30 days with no activity. If you still think it's an issue, please respond soon.

github-actions[bot] commented 3 weeks ago

This issue has become stale because it has been open for 30 days with no activity. If you still think it's an issue, please respond soon.