Update Vizio source property to only return current app if i… (#32713)
* only return current app for source if current app is set * check for None specifically * make sure current app isn't called for speaker
This commit is contained in:
1 parent
ac30e5799c
commit
77ebda0c20
2 files changed
+6
-2
No files matched your search
@@ -304,7 +304,7 @@ class VizioDevice(MediaPlayerDevice):
|
||||
@property
|
||||
def source(self) -> str:
|
||||
"""Return current input of the device."""
|
||||
if self._current_input in INPUT_APPS:
|
||||
if self._current_app is not None and self._current_input in INPUT_APPS:
|
||||
return self._current_app
|
||||
|
||||
return self._current_input
|
||||
|
||||
Reference in new issue
Block a user