Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion homeassistant/components/nad/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ def update(self):
else:
self._mute = True

self._volume = self.calc_volume(self._nad_receiver.main_volume("?"))
volume = self._nad_receiver.main_volume("?")
# Some receivers cannot report the volume, e.g. C 356BEE,
# instead they only support stepping the volume up or down
self._volume = self.calc_volume(volume) if volume is not None else None
self._source = self._source_dict.get(self._nad_receiver.main_source("?"))

def calc_volume(self, decibel):
Expand Down