home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No longer possible to direct connect via IP address alone?

BrizzzUK opened this issue · comments

I'd like to connect directly to a chromecast device via IP address (not using discovery). However, this (very simple) code below fails with an error:

import pychromecast
cast = pychromecast.Chromecast('192.168.22.165')

The error returned is:
File "/home/dev/.local/lib/python3.9/site-packages/pychromecast/init.py", line 271, in init
if not cast_info.cast_type:
AttributeError: 'str' object has no attribute 'cast_type'

Is this a bug or has the functionality been removed or replaced?

Please see this issue: #577