home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

Cannot change Timer helper duration after changing entity_id #124130

Open loganrector1 opened 3 weeks ago

loganrector1 commented 3 weeks ago

The problem

When creating Timer helpers in the front end, if you change the entity_id after the fact, it is no longer possible to update the timer duration (in the helper settings dialog). The settings dialog will show the "new" duration, but the duration attribute does not change, and if you start the timer it will use the "old" duration. image image

What version of Home Assistant Core has the issue?

core-2024.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Timer

Link to integration documentation on our website

https://www.home-assistant.io/integrations/timer/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Received the error below when changing the entity_id of the Timer helper. Note, the new entity_id 'timer.test2' did not exist before renaming the original 'timer.test'.

Cannot migrate history for entity_id `timer.test` to `timer.test2` because the new entity_id is already in use

Additional information

No response

home-assistant[bot] commented 3 weeks ago

timer documentation timer source