'Test state change on notify errors.'

def test_state_change_on_notify_errors(self):

    request_id = configurator.request_config(self.hass, 'Test    Request', (lambda _: None))
    error = 'Oh    no    bad    bad    bad'
    configurator.notify_errors(request_id, error)
    state = self.hass.states.all()[0]
    self.assertEqual(error, state.attributes.get(configurator.ATTR_ERRORS))
