Closed gerard33 closed 5 years ago
Changed some of the logging in the component on the develop branch. Let me know if you see this issue still after loading in that component.
The errors are gone now :grinning:
Only have this error once after shutting down, but that could be unrelated.
Update for media_player.xbox_one_office fails
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 224, in async_update_ha_state
yield from self.async_device_update()
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 353, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/media_player/xboxone.py", line 557, in update
self._xboxone.refresh()
File "/config/custom_components/media_player/xboxone.py", line 442, in refresh
self._volume_controls = self._get_volume_controls()
File "/config/custom_components/media_player/xboxone.py", line 283, in _get_volume_controls
controls = response.get('avr') or response.get('tv')
UnboundLocalError: local variable 'response' referenced before assignment
@gerard33 Fixed with PR #17
Fixed in 1.1.0
First of all, thanks for this great addon!
When turning the Xbox off with the addon I noticed some errors in the log.
Maybe this can be fixed by changing this.
to
Not sure if it fixes it though. What do you think?