Kodi not working in 33.4(it was working in 31.1)

I upgraded to 33.4, and now Kodi doesn’t work. If I downgrade back to 33.1(using pip3 install homeassistant==0.31.1) it still doesn’t work. However, if I restore the snapshot on the VM back to before I updated, it works again. So I think that the upgrade to 33.4 is updating some dependency that’s breaking things. Is anyone else having this issue?

Here’s the code in my yaml:
media_player:

Here’s what it says in the log:
INFO:homeassistant.components.media_player:Setting up media_player.kodi
ERROR:homeassistant.components.media_player:Error while setting up platform kodi
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py”, line 150, in _async_setup_platform
entity_platform.add_entities, discovery_info
File “/usr/lib/python3.5/asyncio/futures.py”, line 361, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 296, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 274, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py”, line 59, in setup_platform
turn_off_action=config.get(CONF_TURN_OFF_ACTION)),
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py”, line 80, in init
self.update()
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py”, line 114, in update
self._players = self._get_players()
File “/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py”, line 91, in _get_players
return self._server.Player.GetActivePlayers()
File “/home/osboxes/.homeassistant/deps/jsonrpc_requests/jsonrpc.py”, line 112, in call
return self.__request_method(self.__method_name, args, kwargs)
File “/home/osboxes/.homeassistant/deps/jsonrpc_requests/jsonrpc.py”, line 96, in __request
return self.send_request(method_name, is_notification, args or kwargs)
File “/home/osboxes/.homeassistant/deps/jsonrpc_requests/jsonrpc.py”, line 37, in send_request
response = self.request(data=request_body)
File “/usr/local/lib/python3.5/dist-packages/requests/sessions.py”, line 535, in post
return self.request(‘POST’, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/requests/sessions.py”, line 474, in request
prep = self.prepare_request(req)
File “/usr/local/lib/python3.5/dist-packages/requests/sessions.py”, line 407, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File “/usr/local/lib/python3.5/dist-packages/requests/models.py”, line 306, in prepare
self.prepare_auth(auth, url)
File “/usr/local/lib/python3.5/dist-packages/requests/models.py”, line 527, in prepare_auth
r = auth(self)
File “/usr/local/lib/python3.5/dist-packages/requests/auth.py”, line 68, in call
r.headers[‘Authorization’] = _basic_auth_str(self.username, self.password)
File “/usr/local/lib/python3.5/dist-packages/requests/auth.py”, line 38, in _basic_auth_str
b64encode(b’:’.join((username, password))).strip()
TypeError: sequence item 0: expected a bytes-like object, NoneType found

Yes exactly the same here and very annoying as my Kodi automation’s do not work now any more.

Did you do a apt-get update between the two?

As I did an upgrade to 33.4 last week but rolled back to 32.4 and it was all still working…
Now I solved my other issues and I went to 33.4 after doing the apt-get updates and now kodi is broken under 33.4 and 32.4 :frowning:

You can find a solution on github: