Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webostv: Ensure source exists before use (home-assistant#10959)
In a case where either (a) an incorrect source name is used, or (b) the TV isn't currently queryable (e.g. it's off), we get tracebacks because we assume the source that we are being asked to select exists in self._source_list. This makes the lookup code a little more rugged, and adds in a warning message (in place of the current exception).
- Loading branch information