frenck / spook

A scary 👻 powerful toolbox 🧰 for Home Assistant 🏡
https://spook.boo
MIT License
381 stars 36 forks source link

Added service to update an entity's ID #537

Closed carlos-sarmiento closed 4 months ago

carlos-sarmiento commented 4 months ago

Description

Add a new service to update an entity's Entity ID.

Motivation and Context

I run a rather large and sprawling Home Assistant instance. Sometimes I add an integration that creates 20+ entities. I don't like the way HA automatically builds the entity_id for new devices/entites and so have to manually go and rename them. The idea behind this is that, instead of having to manually rename every entity, or shutdown home assistant and mess with the entity_registry file in .storage I can do a bunch of service calls and get the result I want.

How has this been tested?

Used on my own instance to rename entities. Service call was simple enough

Screenshots (if appropriate):

Types of changes

Checklist

carlos-sarmiento commented 4 months ago

PR is missing the change to the entities documentation page. Wanted to make sure the change is welcomed before updating that and creating the screenshot

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

carlos-sarmiento commented 4 months ago

Updated everything. Should be ready to merge