danielperna84 / hass-configurator

Configuration UI for Home Assistant
MIT License
306 stars 168 forks source link

Add "Generate UUID" menu item #219

Closed javawizard closed 2 years ago

javawizard commented 2 years ago

I frequently find myself adding template sensors and other configuration entities where I want a unique_id: "..." to allow the entity to be further configured from the UI and wishing I had a way to quickly generate an identifier inline. This PR takes care of that by adding a Generate UUID menu item that inserts a v4 UUID at the current cursor position.


My editor strips out trailing whitespace by default and I missed that until I went to commit - let me know if you'd like me to revert. start.sh has also been made executable.

javawizard commented 2 years ago

Thanks for merging! What's involved in getting a new release cut and upstreamed? Happy to help where I can - if you want to push a new version to PyPI I'm more than willing to do the version bump in home-assistant/addons.

danielperna84 commented 2 years ago

Sorry for not proceeding with anything after the merge.

Generally I'm not really active with this project anymore, as it's running quite stable. But of course adding the feature makes sense.

That being said, would you mind also checking out if you can bump the version of the Ace Editor that's being used? Maybe that will also improve this project.

FYI: The materialize CSS framework can't be updated without a lot of effort. The project started when materialize was in an early state. And I don't think it's worth the effort.

danielperna84 commented 2 years ago

I have published the new release 0.5.0 on pypi: https://pypi.org/project/hass-configurator/

Feel free to trigger the update of the addon. 👍