Skip to content

Commit

Permalink
Fix retrieving a list of supported sources
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 27, 2021
1 parent 3e3e737 commit e35b5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/smartthings_soundbar/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def device_update(self):
else:
self._state = STATE_OFF
self._volume = device_volume
self._source_list = device_all_sources["value"]
self._source_list = device_all_sources if type(device_all_sources) is list else device_all_sources["value"]
self._muted = device_muted
self._source = device_source
if self._state in [STATE_PLAYING, STATE_PAUSED]:
Expand Down

0 comments on commit e35b5d7

Please sign in to comment.