mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-16 16:14:24 -04:00
Add all wm and td sensors to wd
This commit is contained in:
parent
7b80acb6b9
commit
155b1ff91a
7 changed files with 102 additions and 179 deletions
|
@ -50,3 +50,12 @@ class HonCoordinator(DataUpdateCoordinator):
|
|||
|
||||
async def _async_update_data(self):
|
||||
await self._device.update()
|
||||
|
||||
|
||||
def unique_entities(base_entities, new_entities):
|
||||
result = list(base_entities)
|
||||
existing_entities = [entity.key for entity in base_entities]
|
||||
for entity in new_entities:
|
||||
if entity.key not in existing_entities:
|
||||
result.append(entity)
|
||||
return tuple(result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue