home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.
MIT License
2.54k stars 379 forks source link

ValueError: too many values to unpack (expected 5) #698

Closed richardbeumer closed 1 year ago

richardbeumer commented 1 year ago

Because I cannot use mDNS I'm trying to connect to my Google Home Mini with get_chromecast_from_host()

When running the following code I get ValueError: too many values to unpack (expected 5)

import pychromecast

cast = pychromecast.get_chromecast_from_host("192.168.3.19")
print(cast.name)

What am I doing wrong?