Update entity state when ZHA device becomes available#20993
Conversation
|
What are the reasons for keeping the device entity around? Could it be replaced with a couple of sensors and binary sensors? |
|
@MartinHjelmare no, we’ll end up with duplicates that way. They’re being used currently to deduplicate battery sensors. |
|
But why can't it be part of the sensor and binary sensor platforms? Can't we just do the same deduplication there? |
|
Can that be something that is addressed in the future? I can explore doing that but I’d like to do it after this wave of changes |
|
Sure, but if we introduce new features now that we plan to break soon, we should think about not doing that, I think. |
|
Agreed... this functionality is technically already there. This just tweaks the existing functionality to ensure it functions as it was designed |
|
Ok. 👍 |
|
@MartinHjelmare all set |
This PR causes the entities created by zha to get updated when the associated zigbee device becomes available on the network.