def _filter_domains_and_entities(self, entity_id: str) -> bool:
    'Template should re-render if the entity state changes when we match specific domains or entities.'
    return ((split_entity_id(entity_id)[0] in self.domains) or (entity_id in self.entities))
Template should re-render if the entity state changes when we match specific domains or entities.
def _filter_domains_and_entities(self, entity_id: str) -> bool:
    
    return ((split_entity_id(entity_id)[0] in self.domains) or (entity_id in self.entities))