mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Use case insensitive comparison for Sonos model check (#15604)
This commit is contained in:
parent
f62f64311d
commit
58f287f551
@ -865,9 +865,10 @@ class SonosDevice(MediaPlayerDevice):
|
|||||||
"""List of available input sources."""
|
"""List of available input sources."""
|
||||||
sources = [fav.title for fav in self._favorites]
|
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]
|
sources += [SOURCE_LINEIN]
|
||||||
elif 'PLAYBAR' in self._model:
|
elif 'PLAYBAR' in model:
|
||||||
sources += [SOURCE_LINEIN, SOURCE_TV]
|
sources += [SOURCE_LINEIN, SOURCE_TV]
|
||||||
|
|
||||||
return sources
|
return sources
|
||||||
|
Loading…
x
Reference in New Issue
Block a user