#NEWLINE# def test_entity_attributes( self ) : #NEWLINE# #INDENT# 'Test the entity attributes.' #NEWLINE# dev_id = 'test_entity' #NEWLINE# entity_id = device_tracker . ENTITY_ID_FORMAT . format ( dev_id ) #NEWLINE# friendly_name = 'Paulus' #NEWLINE# picture = 'http://placehold.it/200x200' #NEWLINE# device = device_tracker . Device ( self . hass , timedelta ( seconds = 180 ) , 0 , True , dev_id , None , friendly_name , picture , away_hide = 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# attrs = self . hass . states . get ( entity_id ) . attributes #NEWLINE# self . assertEqual ( friendly_name , attrs . get ( ATTR_FRIENDLY_NAME ) ) #NEWLINE# self . assertEqual ( picture , attrs . get ( ATTR_ENTITY_PICTURE ) )