Traceback (most recent call last):


 "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step

result = coro.send(None)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 147, in async_dump_states

for stored_state in self.async_get_stored_states()])


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 147, in <listcomp>

for stored_state in self.async_get_stored_states()])


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 43, in as_dict

'state': self.state.as_dict(),
AttributeError: 'NoneType' object has no attribute 'as_dict'

Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 268, in async_update_ha_state

await self.async_device_update()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 448, in async_device_update

await self.hass.async_add_executor_job(self.update)


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 213, in update

self._sound_mode = self.receiver.surround_program


 "/usr/local/lib/python3.7/site-packages/rxv/rxv.py", line 313, in surround_program

"%s/Surround/Program_Sel/Current/Sound_Program" % self.zone
AttributeError: 'NoneType' object has no attribute 'text'
