dave-code-ruiz / uhomeuponor

Custom Component to connect Home Assistant with Uhome Uponor Smatrix App
MIT License
19 stars 7 forks source link

Feature: Ensure the id of entities is fixed #3

Closed LordMike closed 4 years ago

LordMike commented 4 years ago

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

LordMike commented 4 years ago

I'll try making a PR for this, as I need it .. :)

LordMike commented 4 years ago

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.