def _update_entity_states(self, now):
        with self.component.lock:
            # We copy the entities because new entities might be detected
            # during state update causing deadlocks.
            entities = list(entity for entity in self.platform_entities
                            if entity.should_poll)

        for entity in entities:
            entity.update_ha_state(True)
verify we get an appropriate error when creating an account with an
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/entity_component.py/EntityPlatform._update_entity_states--crossover with--dataset/ETHPy150Open jut-io/jut-python-tools/tests/accounts_api_tests.py/AccountsAPITests.test_create_existing_account