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

Fix InvalidCapabilityConfigurationError exceptions #93

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

dvx76
Copy link
Member

@dvx76 dvx76 commented Oct 14, 2024

Instead of raising an uncaught exception in the entities when the underlying attributes in the MySkoda Vehicle object are (temporarily) missing (None), just return None. HA will show the entities as Unknown.

Fixes #49

Discord discussion: https://discord.com/channels/877164727636230184/1087487796731707402/1295108867755081800

Still need to test this but wanted to get the PR up.

@dvx76 dvx76 requested review from WebSpider and Prior99 October 14, 2024 19:49
@WebSpider
Copy link
Contributor

Also fixes #73

@WebSpider
Copy link
Contributor

Also fixes #72

@WebSpider
Copy link
Contributor

Please have a look at the linter. Code runs fine on my dev install.

@dvx76 dvx76 force-pushed the remove-invalid-capa-error branch 2 times, most recently from f22fe9a to 2cd1838 Compare October 15, 2024 18:03
@dvx76
Copy link
Member Author

dvx76 commented Oct 15, 2024

passing checks now, minor changes to pass pyright and other linters

Copy link
Contributor

@WebSpider WebSpider left a comment

Choose a reason for hiding this comment

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

Lgtm

Instead of raising an uncaught exception in the entities when the
underlying attributes in the MySkoda Vehicle object are (temporarily)
missing (None), just return None. HA will show the entities as Unknown.

Fixes skodaconnect#49
@dvx76 dvx76 force-pushed the remove-invalid-capa-error branch from 2cd1838 to 9b0ae86 Compare October 16, 2024 07:01
@dvx76 dvx76 merged commit 40d4cd9 into skodaconnect:main Oct 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants