Description
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version
):
0.59
Python release (python3 --version
):
3.6
Component/platform:
pychromecast
Description of problem:
Ever since upgrade to 0.59, I get multiple tracebacks for pychromecast. Downgrading to 0.58.1 resolves the issue. Easily reproduced by running any automation that has a cast action.
Expected:
No errors
Problem-relevant configuration.yaml
entries and steps to reproduce:
not sure if this is relevant - #10728 as that is the only change to the platform I can see in the repo.
Traceback (if applicable):
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 182, in _step
result = coro.throw(exc)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/core.py", line 1031, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 408, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/media_player/cast.py", line 315, in play_media
self.cast.media_controller.play_media(media_id, media_type)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pychromecast/controllers/media.py", line 465, in play_media
callback_function=app_launched_callback)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pychromecast/socket_client.py", line 803, in launch_app
self.update_status(lambda response:
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pychromecast/socket_client.py", line 794, in update_status
callback_function=callback_function_param)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pychromecast/controllers/__init__.py", line 84, in send_message
self.namespace, data, inc_session_id, callback_function)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pychromecast/socket_client.py", line 603, in send_platform_message
inc_session_id, callback_function_param)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pychromecast/socket_client.py", line 597, in send_message
raise NotConnected("Chromecast is connecting...")
pychromecast.error.NotConnected: Chromecast is connecting...
Additional info:
If this is due to the firmware on cast devices and the API, I am not sure what needs to be done in HA if anything as this seems to be a breaking change with the pychromecast version bump. I only have this configuration in HA.
- platform: cast
host: !secret cast_host1 -- Just an IP address
I also see the latest version via the setup says 1.0.2 but this link says 1.0.1 is
https://github.com/balloob/pychromecast/releases/tag/1.0.1
Maybe I'm missing something.