Add unique_id to homematic_cloud#16828
Add unique_id to homematic_cloud#16828MartinHjelmare merged 2 commits intohome-assistant:devfrom sander76:dev
Conversation
|
@mxworm I created a PR for the issue. I consulted balloob for the solution. He requested adding |
|
@sander76 Sorry, I'm a bit late, but maybe to use the |
|
@mxworm Thought about that too, but using |
|
@sander76 I would like to have it implemented as the name property: |
|
@mxworm what does 'self.post' stand for ? |
|
@mxworm does your code result in a unique entity_id ? |
|
@sander76 The Wohnzimmer Temperature, hmip-wth_temperature_3014f711a000xxxxxxxxxxxxx (HMIP-WTH) I have just missed a |
|
@sander76 But for the "braking change" I any how miss at the moment the |
|
@mxworm it is not necessary to call that function (anymore). That is all taken care of by the entity manager in Hass. We just need a unique ID property. |
|
@sander76 Thanks, this I missed :-) |
|
@mxworm I missed the self.post property. Interesting.. looks nice |
|
@sander76 I know its not the best way, but I would prefer it instead of the classname. |
|
@sander76 What do you think? |
Description:
Add unique_id property to homematic_cloud entities to prevent mixup of devices when hass is restarted.
Related issue (if applicable): fixes #
#16794
Checklist:
tox. Your PR cannot be merged unless tests pass