Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise BraviaTVTurnedOff when not power-on #10

Merged
merged 2 commits into from
Sep 28, 2022
Merged

Raise BraviaTVTurnedOff when not power-on #10

merged 2 commits into from
Sep 28, 2022

Conversation

bieniu
Copy link
Collaborator

@bieniu bieniu commented Sep 27, 2022

Related to home-assistant/core#78874

If the TV is turned off and returns {'error': [7, 'not power-on'], 'id': 1} we raise BraviaTVTurnedOff to be able to mark the device as turned off in HA.

@Drafteed
Copy link
Owner

Drafteed commented Sep 27, 2022

{'error': [7, 'not power-on'], 'id': 1}

Hmm, somehow not a standard error. Should we consider the possibility of catching all API errors? Will this be a headache for us?

@bieniu
Copy link
Collaborator Author

bieniu commented Sep 28, 2022

Yes, catching all the API errors can be useful and shouldn't be a problem.

@bieniu bieniu merged commit 7f55fb2 into master Sep 28, 2022
@bieniu bieniu deleted the tv-off branch September 28, 2022 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants