def _get_homehub_data(url):
 try:
  response = requests.get(url, timeout=5)
 except requests.exceptions.Timeout:
  _LOGGER.exception('Connection to the router timed out')
  return
 if (response.status_code == 200):
  return _parse_homehub_response(response.text)
 else:
  _LOGGER.error('Invalid response from Home Hub: %s', response)

def _get_homehub_data ( url ) : try : response = requests . get ( url , timeout = 5 ) except requests . exceptions . Timeout : _LOGGER . exception ( 'Connection to the router timed out' ) return if ( response . status_code == 200 ) : return _parse_homehub_response ( response . text ) else : _LOGGER . error ( 'Invalid response from Home Hub: %s' , response )
return mock homehub data .