

def _update_entity_states(self, now):
    'Update the states of all the polling entities.'
    with self.component.lock:
        entities = list((entity for entity in self.platform_entities if entity.should_poll))
    for entity in entities:
        entity.update_ha_state(True)

dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/entity_component.py EntityPlatform._update_entity_states/original