Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Editor resets to default on restart #22925

Closed
3 of 4 tasks
kartcon opened this issue Nov 21, 2024 · 3 comments
Closed
3 of 4 tasks

Template Editor resets to default on restart #22925

kartcon opened this issue Nov 21, 2024 · 3 comments
Labels

Comments

@kartcon
Copy link

kartcon commented Nov 21, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Seems as of late the Template Editor resets itself to the default upon a restart. Is this a new ‘feature’ and can it be disabled? It’s annoying to lose template code that I’m currently working on every time Home Assistant is restarted.

Describe the behavior you expected

Template Editor retains last state after reboot, as it did in the past

Steps to reproduce the issue

  1. write some code in template editor
  2. restart Home Assistant
  3. return to Template Editor
  4. Default code has replaced user code :<(

What version of Home Assistant Core has the issue?

2024.11.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Safari Version 17.6 (19618.3.11.11.5)

Which operating system are you using to run this browser?

macOS Sonoma 14.6.1

State of relevant entities

Loss of current work in Template Editor upon restart

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

@ildar170975
Copy link
Contributor

Seems as of late the Template Editor resets itself to the default upon a restart.

Do not confirm with 2024.11.1 & Chrome.

@karwosts
Copy link
Contributor

The current template in the editor is stored in your browser localStorage. If it's being cleared, seems like the browser is not retaining it in your cache for some reason.

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants