Skip to content

Commit

Permalink
refactor: inherit from HomeAssistantError (#122)
Browse files Browse the repository at this point in the history
It is best practice to derive from Exception or HomeAssistantError so that it is caught by general exception handlers.
  • Loading branch information
ardevd authored Feb 3, 2025
1 parent 25c7365 commit f72783f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dimo/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ class InvalidAuth(HomeAssistantError):
"""Error to indicate there is invalid auth."""


class NoVehiclesException(BaseException):
class NoVehiclesException(HomeAssistantError):
"""Error to indicate no vehicles on the account."""

0 comments on commit f72783f

Please sign in to comment.