Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'host' referenced before assignment #677

Open
provinzio opened this issue Dec 3, 2022 · 0 comments
Open

Comments

@provinzio
Copy link

Logger: pychromecast.discovery
Source: components/cast/helpers.py:105
First occurred: 03:09:13 (1 occurrences)
Last logged: 03:09:13

Unhandled exception in worker thread
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/pychromecast/discovery.py", line 302, in run
self._poll_hosts()
File "/usr/local/lib/python3.10/site-packages/pychromecast/discovery.py", line 393, in _poll_hosts
self._update_devices(host, devices, uuids)
File "/usr/local/lib/python3.10/site-packages/pychromecast/discovery.py", line 430, in _update_devices
callback()
File "/usr/src/homeassistant/homeassistant/components/cast/discovery.py", line 68, in update_cast
discover_chromecast(hass, browser.devices[uuid])
File "/usr/src/homeassistant/homeassistant/components/cast/discovery.py", line 37, in discover_chromecast
info = info.fill_out_missing_chromecast_info(hass)
File "/usr/src/homeassistant/homeassistant/components/cast/helpers.py", line 105, in fill_out_missing_chromecast_info
http_group_status = dial.get_multizone_status(
File "/usr/local/lib/python3.10/site-packages/pychromecast/dial.py", line 260, in get_multizone_status
_, status = _get_status(
File "/usr/local/lib/python3.10/site-packages/pychromecast/dial.py", line 86, in _get_status
url = FORMAT_BASE_URL_HTTPS.format(host) + path
UnboundLocalError: local variable 'host' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant