def test_if_fires_on_entity_change_with_to_filter(self):
        assert _setup_component(self.hass, automation.DOMAIN, {
            automation.DOMAIN: {
                'trigger': {
                    'platform': 'state',
                    'entity_id': 'test.entity',
                    'to': 'world'
                },
                'action': {
                    'service': 'test.automation'
                }
            }
        })

        self.hass.states.set('test.entity', 'world')
        self.hass.pool.block_till_done()
        self.assertEqual(1, len(self.calls))
Make an id string.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/automation/test_state.py/TestAutomationState.test_if_fires_on_entity_change_with_to_filter--crossover with--dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/profile.py/_make_id