Skip to content
Snippets Groups Projects
Commit 1325682d authored by Anders Melchiorsen's avatar Anders Melchiorsen Committed by Paulus Schoutsen
Browse files

Use case insensitive comparison for Sonos model check (#15604)

parent 140a8749
No related branches found
No related tags found
No related merge requests found
......@@ -865,9 +865,10 @@ class SonosDevice(MediaPlayerDevice):
"""List of available input sources."""
sources = [fav.title for fav in self._favorites]
if 'PLAY:5' in self._model or 'CONNECT' in self._model:
model = self._model.upper()
if 'PLAY:5' in model or 'CONNECT' in model:
sources += [SOURCE_LINEIN]
elif 'PLAYBAR' in self._model:
elif 'PLAYBAR' in model:
sources += [SOURCE_LINEIN, SOURCE_TV]
return sources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment