def _filter_entities(self, entity_id: str) -> bool:
    'Template should re-render if the entity state changes when we match specific entities.'
    return (entity_id in self.entities)
Template should re-render if the entity state changes when we match specific entities.
def _filter_entities(self, entity_id: str) -> bool:
    
    return (entity_id in self.entities)