

def extract_from_service(self, service):
    'Extract all known entities from a service call.\n\n        Will return all entities if no entities specified in call.\n        Will return an empty list if entities specified but unknown.\n        '
    with self.lock:
        if (ATTR_ENTITY_ID not in self.data):
            return list(self.entities.values())
        return [self.entities[entity_id] for entity_id in extract_entity_ids(self.hass, service) if (entity_id in self.entities)]

dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/entity_component.py EntityComponent.extract_from_service/VarMisuse@26/98 `service`->`self`