dave-code-ruiz/uhomeuponor

Feature: Ensure the id of entities is fixed

Closed this issue · 2 comments

As I read Entity (base class of ClimateDevice), we can implement unique_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

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.