forked from platypush/platypush
Let publish_entities
return the list of transformed_entities
This commit is contained in:
parent
e04870209e
commit
35719b0da9
1 changed files with 4 additions and 1 deletions
|
@ -78,7 +78,9 @@ class EntityManager(ABC):
|
|||
|
||||
return entities
|
||||
|
||||
def publish_entities(self, entities: Optional[Collection[Any]]):
|
||||
def publish_entities(
|
||||
self, entities: Optional[Collection[Any]]
|
||||
) -> Collection[Entity]:
|
||||
"""
|
||||
Publishes a list of entities. The downstream consumers include:
|
||||
|
||||
|
@ -99,6 +101,7 @@ class EntityManager(ABC):
|
|||
)
|
||||
|
||||
publish_entities(transformed_entities)
|
||||
return transformed_entities
|
||||
|
||||
|
||||
def register_entity_manager(cls: Type[EntityManager]):
|
||||
|
|
Loading…
Reference in a new issue