AttributeError: module 'pychromecast' has no attribute 'get_chromecast_from_cast_info'
See original GitHub issueHello,
After update v3.5.2 I’m getting the following error:
Error executing script. Unexpected error for call_service at pos 2: module 'pychromecast' has no attribute 'get_chromecast_from_cast_info'
While executing automation automation.switch_spotcast
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 250, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 457, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1484, in _execute_service
await self._hass.async_add_executor_job(handler.job.target, service_call)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/spotcast/__init__.py", line 369, in start_casting
spotify_cast_device = SpotifyCastDevice(
File "/config/custom_components/spotcast/__init__.py", line 502, in __init__
self.castDevice = self.getChromecastDevice(device_name)
File "/config/custom_components/spotcast/__init__.py", line 526, in getChromecastDevice
return pychromecast.get_chromecast_from_cast_info(
AttributeError: module 'pychromecast' has no attribute 'get_chromecast_from_cast_info'
My automation looks like this:
- service: spotcast.start
data:
entity_id: media_player.alle_speakers
uri: spotify:playlist:46vPUPIAf7mjyTrJzJcjpi
random_song: true
shuffle: true
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
module 'pychromecast' has no attribute 'get_chromecasts'
Hello, I just tried the very first example : #!/usr/bin/env python3 import pychromecast chromecasts = pychromecast.get_chromecasts() ...
Read more >PyChromecast
Python module to talk to Google Chromecast. ... No worries, the following instructions will have you covered in exploring the possibilities.
Read more >How to tell what methods are available in a installed module
AttributeError : module 'pychromecast' has no attribute 'get_chromehosts'. Is it that I am doing/understanding something fundamentally wrong?
Read more >965249 - Upgrade to python3-pychromecast 7.1.1-1 breaks ...
_chromecasts_by_name = {c.name: c for c in AttributeError: 'list' object has no attribute 'name' When switching back to python3-pychromecast ...
Read more >Google unavailable after upgrade to 0.109.x
the integration also finds the devices with no issues, but them shows as ... AttributeError: module 'pychromecast' has no attribute ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The requirement for the 3.5.2 spotcast version is HA >= 2021.4.0
Updated to the latest version of HA and works like a charm. Thanks!