nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
675 stars 45 forks source link

Allow to easily replace an 'unknown Entity' #399

Open soif opened 1 day ago

soif commented 1 day ago

Context

When an entity is no longer available (renamed, replaced..), there is no way to change the entity. It displays "(unknown entity)". When trying to change the entity in the "entity" tab, and clicking "Make Scheme", it shows : " Some settings will be lost by this change. Do you want to continue? ", then after clicking yes, then "save", it result in error:

Something went wrong!
Message format incorrect: length of value must be at least 1 for dictionary value @ data['timeslots']

Response error: 400

Please [report](https://github.com/nielsfaber/scheduler-card/issues) the bug.

So the only way to change the entity is to delete the Scheduler, then re-create it... from scratch, which is not really convenient. 😬

Proposal

It would be cool, to get a way to replace an "unknown entity" by a new one, without having to delete/re-create the whole schedule.


BTW Thanks for this wonderful component! πŸ‘ (IMHO it should be integrated into HA, as standard) Best regards