Closed LordMike closed 4 years ago
I'll try making a PR for this, as I need it .. :)
Ok. So providing unique_id did not change the identifiers for entities, as I expected.
EDIT: But all entities are now present in entity registry. So that's always something.
As I read
Entity
(base class ofClimateDevice
), we can implementunique_id()
and thereby ensure entities don't change id's when their names are changed.https://github.com/home-assistant/home-assistant/blob/a3bcf69adff44ee7dc7bad3c849e4d3a083abfd2/homeassistant/helpers/entity.py#L130-L133