In HA 0.111.0b2 my Google Cast devices are unavailable. Reinstalled the integration didn't solve it.
configuration.yaml
Exception in async_set_cast_info called from File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/src/homeassistant/homeassistant/__main__.py", line 364, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 356, in main exit_code = asyncio.run(setup_and_run_hass(config_dir, args), debug=args.debug) File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete self.run_forever() File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever self._run_once() File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once handle._run() File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 441, in _async_add_entity await entity.async_added_to_hass() File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 219, in async_added_to_hass async_create_catching_coro(self.async_set_cast_info(self._cast_info)) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 282, in async_set_cast_info cast_info.friendly_name, File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.7/site-packages/pychromecast/__init__.py", line 86, in get_chromecast_from_service zconf=zconf, File "/usr/local/lib/python3.7/site-packages/pychromecast/__init__.py", line 260, in __init__ dev_status = get_device_status(self.host, services, zconf) File "/usr/local/lib/python3.7/site-packages/pychromecast/dial.py", line 75, in get_device_status status = _get_status(host, services, zconf, "/setup/eureka_info?options=detail") File "/usr/local/lib/python3.7/site-packages/pychromecast/dial.py", line 43, in _get_status host, _ = get_host_from_service_info(service_info) File "/usr/local/lib/python3.7/site-packages/pychromecast/discovery.py", line 186, in get_host_from_service_info if service_info.address: AttributeError: 'ServiceInfo' object has no attribute 'address'
Exception in _async_cast_discovered when dispatching 'cast_discovered': (ChromecastInfo(host='192.168.178.63', port=8009, service='SHIELD-Android-TV-d5c72bbd48de34a95e1576dbd8dab94a._googlecast._tcp.local.', uuid='d5c72bbd-48de-34a9-5e15-76dbd8dab94a', model_name='SHIELD Android TV', friendly_name='SHIELD'),) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 752, in _async_cast_discovered await self.async_set_cast_info(discover) File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 282, in async_set_cast_info cast_info.friendly_name, File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.7/site-packages/pychromecast/__init__.py", line 86, in get_chromecast_from_service zconf=zconf, File "/usr/local/lib/python3.7/site-packages/pychromecast/__init__.py", line 260, in __init__ dev_status = get_device_status(self.host, services, zconf) File "/usr/local/lib/python3.7/site-packages/pychromecast/dial.py", line 75, in get_device_status status = _get_status(host, services, zconf, "/setup/eureka_info?options=detail") File "/usr/local/lib/python3.7/site-packages/pychromecast/dial.py", line 43, in _get_status host, _ = get_host_from_service_info(service_info) File "/usr/local/lib/python3.7/site-packages/pychromecast/discovery.py", line 186, in get_host_from_service_info if service_info.address: AttributeError: 'ServiceInfo' object has no attribute 'address'
Same issues here
cast documentation
cast source
(message by IssueLinks)
@bdraco I didn't realize zeroconf 0.27 made it to 0.111
Anyhow, if that's included, need to cherry-pick #36414 as well.
@bdraco I didn't realize zeroconf 0.27 made it to 0.111
Anyhow, if that's included, need to cherry-pick #36414 as well.
Good call. This was my fault. Sorry I wasn鈥檛 more vocal about that. With all the issues we had with 0.26, I wanted to make sure we were not stuck on an old version if we had to fix something in a patch release.
Same issues here
Should be fixed in 0.111b3 (not yet released)
0.111b3 is out.
Fixed in 0.111b3 - closing.
Hi there, this issue is not fixed for me in release 0.111.1 :-/
@siom7 do you have any custom component installed?
@emontnemery I guess like many people yes I'm using some custom components. You will say one of them is the root cause for my case ? :-)
Yeah, if one of them is pinning an incompatible version of pychromecast or zeroconf. Do you use any Spotify or Plex component?
@emontnemery Yes, I'm using officials integrations Spotify and Plex and I'm using Spotcast custom component too.
@siom7 have you updated spotcast to 3.1.1? https://github.com/fondberg/spotcast/issues/96
@emontnemery First time I tried to upgrade HA I forgot to check HACS components updates but everything is up to date now. I have started upgrade to 0.111.1 from 0.110.7 and now I'm stuck on "Home Assistant starts, everything will not be available until it is finished." during few minutes and the install is rolling back to 0.110.7 so I have a different issue now and I don't know what to do... :-(
Most helpful comment
Should be fixed in 0.111b3 (not yet released)