Sonos errors (sonos.py) after upgrading to 0.75.2

Hi,

I just upgraded to 0.75.2 and am seeing the following errors in the logs:

2018-08-07 14:57:47 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 217, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 946, in state_attributes
    in ATTR_TO_PROPERTY if getattr(self, attr) is not None
  File "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 946, in <dictcomp>
    in ATTR_TO_PROPERTY if getattr(self, attr) is not None
  File "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/sonos.py", line 753, in volume_level
    return self._player_volume / 100
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

This error is repeated every 10s in the log.

Seems Sonos related, but I haven’t been able to test that (not at home atm).

Thanks.

That looks like your Sonos speaker has become unavailable for Home Assistant.

The verbose error message is a bug, please report more details when you get home so it can get fixed.

I haven’t changed anything and the error was no longer present when I got home.