Traceback (most recent call last):


 "/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 148, in _async_setup_platform

entity_platform.add_entities, discovery_info


 "/usr/local/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/local/lib/python3.4/asyncio/tasks.py", line 285, in _wakeup

value = future.result()


 "/usr/local/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/local/lib/python3.4/concurrent/futures/thread.py", line 54, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 72, in setup_platform

lms = LogitechMediaServer(host, port, username, password)


 "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 91, in __init__

self.http_port = self._get_http_port()


 "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 96, in _get_http_port

http_port = self.query('pref', 'httpport', '?')


 "/usr/local/lib/python3.4/site-packages/homeassistant/components/media_player/squeezebox.py", line 114, in query

response = urllib.parse.unquote(self.get(' '.join(parameters)))


 "/usr/local/lib/python3.4/urllib/parse.py", line 519, in unquote

if '%' not in string:
TypeError: argument of type 'NoneType' is not iterable

Traceback (most recent call last):


 "/home/utrade/utradeENV/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen

chunked=chunked)


 "/home/utrade/utradeENV/lib/python3.6/site-packages/urllib3/connectionpool.py", line 356, in _make_request

conn.request(method, url, **httplib_request_kw)


 "/home/utrade/python3.6_optimized/lib/python3.6/http/client.py", line 1239, in request

self._send_request(method, url, body, headers, encode_chunked)


 "/home/utrade/python3.6_optimized/lib/python3.6/http/client.py", line 1285, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 "/home/utrade/python3.6_optimized/lib/python3.6/http/client.py", line 1234, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 "/home/utrade/python3.6_optimized/lib/python3.6/http/client.py", line 1026, in _send_output

self.send(msg)


 "/home/utrade/python3.6_optimized/lib/python3.6/http/client.py", line 964, in send

self.connect()


 "/home/utrade/utradeENV/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect

conn = self._new_conn()


 "/home/utrade/utradeENV/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn

self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9342c32f98>: Failed to establish a new connection: [Errno -2] Name or service
