diff --git a/custom_components/smartthings_soundbar/api.py b/custom_components/smartthings_soundbar/api.py index 6536c38..d96006f 100644 --- a/custom_components/smartthings_soundbar/api.py +++ b/custom_components/smartthings_soundbar/api.py @@ -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]: