-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
updated to new "b2vapi" of BMW ConnectedDrive #13305
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Components should not create home assistant groups. That is for users only to do.
@@ -103,3 +111,21 @@ def update(self, *_): | |||
def add_update_listener(self, listener): | |||
"""Add a listener for update notifications.""" | |||
self._update_listeners.append(listener) | |||
|
|||
def async_add_to_group(self, vehicle, entity_id: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should create groups automatically. Let the users do that if they want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, removed the groups again.
I though it would be handy, as a vehicle might end up with 10-15 individual sensors. And creating the groups manually is annoying...
4e98184
to
3872022
Compare
16abde6
to
08150ec
Compare
Implementation and tests completed, ready to be reviewed and merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Two small comments.
@@ -6,7 +6,6 @@ | |||
""" | |||
import logging | |||
import datetime | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the blank line between standard library and 3rd party imports.
@@ -6,7 +6,6 @@ | |||
""" | |||
import logging | |||
import datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sort 🔤 within groups standard library, 3rd party and homeassistant imports.
57ed1bb
to
0719380
Compare
import datetime | ||
|
||
import logging | ||
import voluptuous as vol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a blank line here between logging and voluptuous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description:
To support users from USA and Canada, the bimmer_connected library moved to a different API on the BMW servers. As this is a breaking changes for the bimmer_connected library, several changes were required to the Home Assistant modules.
The
country
attribute in the configuration is now replaced with aregion
attribute.Related issue (if applicable): fixes N/A
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#4947
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices: