#NEWLINE# def test_state_change_on_notify_errors( self ) : #NEWLINE# #INDENT# 'Test state change on notify errors.' #NEWLINE# request_id = configurator . request_config ( self . hass , 'Test Request' , ( lambda _ : None ) ) #NEWLINE# error = 'Oh no bad bad bad' #NEWLINE# configurator . notify_errors ( state , error ) #NEWLINE# state = self . hass . states . all ( ) [ 0 ] #NEWLINE# self . assertEqual ( error , state . attributes . get ( configurator . ATTR_ERRORS ) )