code: def friendly_name(self):
          
          if len(self._client.get('config').get('name')):
              return self._client.get('config').get('name')
          return self._client.get('host').get('name')
docs: Get friendly name.