#NEWLINE# def test_reading_yaml_config( self ) : #NEWLINE# #INDENT# 'Test the rendering of the YAML configuration.' #NEWLINE# dev_id = 'test' #NEWLINE# device = device_tracker . Device ( self . hass , timedelta ( seconds = 180 ) , 0 , True , dev_id , 'AB:CD:EF:GH:IJ' , 'Test name' , 'http://test.picture' , True ) #NEWLINE# device_tracker . update_config ( self . yaml_devices , dev_id , device ) #NEWLINE# self . assertTrue ( device_tracker . setup ( self . hass , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# config = device_tracker . load_config ( self . yaml_devices , self . hass , device . consider_home , 0 ) [ 0 ] #NEWLINE# self . assertEqual ( device . dev_id , config . dev_id ) #NEWLINE# self . assertEqual ( device . track , config . track ) #NEWLINE# self . assertEqual ( dev_id . mac , config . mac ) #NEWLINE# self . assertEqual ( device . config_picture , config . config_picture ) #NEWLINE# self . assertEqual ( device . away_hide , config . away_hide ) #NEWLINE# self . assertEqual ( device . consider_home , config . consider_home )