core: Google Cast Devices Unavailable - 0.111.0b2
The problem
In HA 0.111.0b2 my Google Cast devices are unavailable. Reinstalled the integration didn’t solve it.
Environment
- Home Assistant Core release with the issue: 0.111.0b2
- Last working Home Assistant Core release (if known): 0.110
- Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant Supervised
- Integration causing this issue: Google Cast
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
Traceback/Error logs
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'
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 15 (8 by maintainers)
Should be fixed in 0.111b3 (not yet released)