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

Add ServiceValidationError and translation support #1961

Merged

Conversation

jbouwh
Copy link
Contributor

@jbouwh jbouwh commented Oct 28, 2023

Proposed change

Add ServiceValidationError and translation support

Adds blog post

Type of change

  • Document existing features within Home Assistant
  • Document new or changing features which there is an existing pull request elsewhere
  • Spelling or grammatical corrections, or rewording for improved clarity
  • Changes to the backend of this documentation
  • Removed stale or deprecated documentation

Additional information

@jbouwh jbouwh marked this pull request as ready for review October 29, 2023 15:14
docs/internationalization/core.md Outdated Show resolved Hide resolved
blog/2023-10-29-service-exceptions-and-translations.md Outdated Show resolved Hide resolved
blog/2023-10-29-service-exceptions-and-translations.md Outdated Show resolved Hide resolved
docs/api/websocket.md Outdated Show resolved Hide resolved
docs/api/websocket.md Outdated Show resolved Hide resolved
docs/integration_handling_exceptions.md Outdated Show resolved Hide resolved
docs/integration_handling_exceptions.md Outdated Show resolved Hide resolved
@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft October 31, 2023 09:54
@jbouwh jbouwh marked this pull request as ready for review October 31, 2023 14:03
@jbouwh
Copy link
Contributor Author

jbouwh commented Nov 15, 2023

@MartinHjelmare and @emontnemery can we finish the review?

@jbouwh jbouwh requested a review from emontnemery November 15, 2023 08:52
blog/2023-10-29-service-exceptions-and-translations.md Outdated Show resolved Hide resolved
blog/2023-10-29-service-exceptions-and-translations.md Outdated Show resolved Hide resolved
docs/api/websocket.md Outdated Show resolved Hide resolved
docs/api/websocket.md Outdated Show resolved Hide resolved
docs/core/platform/handling_exceptions.md Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft November 15, 2023 09:48
@jbouwh jbouwh marked this pull request as ready for review November 16, 2023 07:50
blog/2023-10-29-service-exceptions-and-translations.md Outdated Show resolved Hide resolved
docs/core/platform/raising_exceptions.md Outdated Show resolved Hide resolved
blog/2023-10-29-service-exceptions-and-translations.md Outdated Show resolved Hide resolved
docs/api/websocket.md Outdated Show resolved Hide resolved
docs/internationalization/core.md Outdated Show resolved Hide resolved
docs/internationalization/core.md Outdated Show resolved Hide resolved
docs/internationalization/core.md Outdated Show resolved Hide resolved
docs/integration_quality_scale_index.md Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft November 16, 2023 08:20
@jbouwh jbouwh marked this pull request as ready for review November 16, 2023 08:36
Copy link
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jbouwh jbouwh merged commit f85fa4c into home-assistant:master Nov 17, 2023
3 checks passed
@jbouwh jbouwh deleted the service-validation-error-and-translations branch November 17, 2023 14:36
check_index(index)
except ValueError as ex:
raise ServiceValidationError(
message,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbouwh where does this variable come from.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. It should be a static string with a message to be logged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants