Skip to content

Commit e4762ed

Browse files
committed
Fixed 'not JSON serializable' issue.
Rebased on dev
1 parent 79ad6d5 commit e4762ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

homeassistant/components/soundtouch/media_player.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ def source(self):
246246
def source_list(self):
247247
"""List of available input sources."""
248248
return [
249-
Source.AUX,
250-
Source.BLUETOOTH,
249+
Source.AUX.value,
250+
Source.BLUETOOTH.value,
251251
]
252252

253253
@property
@@ -375,10 +375,10 @@ def play_media(self, media_type, media_id, **kwargs):
375375

376376
def select_source(self, source):
377377
"""Select input source."""
378-
if source == Source.AUX:
378+
if source == Source.AUX.value:
379379
_LOGGER.debug("Selecting source AUX")
380380
self._device.select_source_aux()
381-
elif source == Source.BLUETOOTH:
381+
elif source == Source.BLUETOOTH.value:
382382
_LOGGER.debug("Selecting source Bluetooth")
383383
self._device.select_source_bluetooth()
384384
else:

0 commit comments

Comments
 (0)