#NEWLINE# def test_entity_ids( ) : #NEWLINE# #INDENT# 'Test entity ID validation.' #NEWLINE# schema = vol . Schema ( cv . entity_ids ) #NEWLINE# for value in ( 'invalid_entity' , 'sensor.light,sensor_invalid' , [ 'invalid_entity' ] , [ 'sensor.light' , 'sensor_invalid' ] , [ 'sensor.light,sensor_invalid' ] ) : #NEWLINE# #INDENT# with pytest . raises ( vol . MultipleInvalid ) : #NEWLINE# #INDENT# schema ( value ) #NEWLINE# #UNINDENT# #UNINDENT# for value in ( [ ] , [ 'sensor.light' ] , 'sensor.light' ) : #NEWLINE# #INDENT# schema ( value ) #NEWLINE# #UNINDENT# assert ( schema ( 'sensor.LIGHT, light.kitchen ' ) == [ 'sensor.light' , 'light.kitchen' ] )