Address post merge review changes in upnp (#122189)

Post merge review change
This commit is contained in:
Steven Looman 2024-07-19 17:38:38 +02:00 committed by GitHub
parent 419bf0165a
commit d3029af888
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,6 @@ class UpnpDataUpdateCoordinator(
def register_entity(self, key: str, entity_id: str) -> Callable[[], None]:
"""Register an entity."""
# self._entities.append(entity)
self._features_by_entity_id[key].add(entity_id)
def unregister_entity() -> None:
@ -59,7 +58,7 @@ class UpnpDataUpdateCoordinator(
# Must be the first update, no entities attached/enabled yet.
return None
return list(self._features_by_entity_id.keys())
return list(self._features_by_entity_id)
async def _async_update_data(
self,