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

Disable ChargeLimit and BatteryCare forSuperb iV #178

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WebSpider
Copy link
Contributor

Fixes #166

Needs testing

@@ -78,3 +78,6 @@ async def async_set_native_value(self, value: float): # noqa: D102

def required_capabilities(self) -> list[CapabilityId]:
return [CapabilityId.CHARGING]

def forbidden_capabilities(self) -> list[CapabilityId]:
Copy link
Member

Choose a reason for hiding this comment

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

off-topic: kinda wondering why we didn't make required_capabilities a class attribute (= [] in the base MySkodaEntity). Seems a bit cleaner than overloaded methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes that makes complete sense in retrospect

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.

Superb iV: Internal Server Error for BatteryCare and ChargeLimit functionality
2 participants