Skip to content

Commit

Permalink
Fixes an issue where set_play_content() unintentionally checked for a…
Browse files Browse the repository at this point in the history
…n API response
  • Loading branch information
BrandonDusseau committed Oct 3, 2019
1 parent 7d1db93 commit f5aadf2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions braviaproapi/bravia/avcontent.py
Expand Up @@ -412,14 +412,11 @@ def set_play_content(self, uri):
raise ValueError("uri must be non-empty string")

try:
response = self.http_client.request(
self.http_client.request(
endpoint="avContent",
method="setPlayContent",
params={"uri": uri},
version="1.0"
)
except HttpError as err:
raise ApiError(get_error_message(err.error_code, str(err))) from None

if not response or type(response) is not dict:
raise ApiError("API returned unexpected response format for getPlayingContentInfo")

0 comments on commit f5aadf2

Please sign in to comment.