pychromecast icon indicating copy to clipboard operation
pychromecast copied to clipboard

UnboundLocalError: local variable 'host' referenced before assignment

Open provinzio opened this issue 2 years ago • 0 comments

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

provinzio avatar Dec 03 '22 12:12 provinzio