def _filter_lifecycle_domains(self, entity_id: str) -> bool:
    'Template should re-render if the entity is added or removed with domains watched.'
    return (split_entity_id(entity_id)[0] in self.domains_lifecycle)
Template should re-render if the entity is added or removed with domains watched.
def _filter_lifecycle_domains(self, entity_id: str) -> bool:
    
    return (split_entity_id(entity_id)[0] in self.domains_lifecycle)