home-assistant-libs/pychromecast

How to handle AssertionError for assert self.socket is not None?

elibroftw opened this issue · 0 comments

After updating to v14, I have encountered a slew of errors. When I call cast.media_controller.update_status(), I get the following error

 File "C:\Users\maste\Documents\GitHub\music-caster\.venv\Lib\site-packages\pychromecast\socket_client.py", line 891, in send_message
    assert self.socket is not None
AssertionError

How should this be handled?