Skip to content

Instantly share code, notes, and snippets.

@yottatsa
Created December 24, 2018 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yottatsa/de6d5d890a11454efcb8ec65fa0741d2 to your computer and use it in GitHub Desktop.
Save yottatsa/de6d5d890a11454efcb8ec65fa0741d2 to your computer and use it in GitHub Desktop.
Testing 50pus6272/05 with new PR
$ python -m haphilipsjs --debug --host 192.168.1.6 --api 6
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.6:1925
DEBUG:urllib3.connectionpool:http://192.168.1.6:1925 "GET /6/system HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.1.6
DEBUG:urllib3.connectionpool:http://192.168.1.6:1925 "GET /6/audio/volume HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.1.6
DEBUG:urllib3.connectionpool:http://192.168.1.6:1925 "GET /6/channeldb/tv HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.1.6
DEBUG:urllib3.connectionpool:http://192.168.1.6:1925 "GET /6/channeldb/tv/channelLists/allcab HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.1.6
DEBUG:urllib3.connectionpool:http://192.168.1.6:1925 "GET /6/channeldb/tv/channelLists/allsat HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.1.6
DEBUG:urllib3.connectionpool:http://192.168.1.6:1925 "GET /6/activities/tv HTTP/1.1" 200 None
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/homeassistant/venv/lib/python3.5/site-packages/haphilipsjs/__main__.py", line 26, in <module>
logger.info('Source: %s', tv.getSourceName(tv.source_id))
File "/home/homeassistant/venv/lib/python3.5/site-packages/haphilipsjs/__init__.py", line 159, in getSourceName
return self.getChannelName(srcid)
File "/home/homeassistant/venv/lib/python3.5/site-packages/haphilipsjs/__init__.py", line 119, in getChannelName
return self.channels.get(id, dict()).get('name', None)
AttributeError: 'list' object has no attribute 'get'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment