-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[tesla] Fix discovery of Tesla vehicles from account #14070
Conversation
Signed-off-by: Kai Kreuzer <kai@openhab.org>
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 was not aware of the existence of the ThingTypeMigrationService service.
@@ -81,31 +81,15 @@ public void deactivate() { | |||
|
|||
@Override | |||
public void vehicleFound(Vehicle vehicle, VehicleConfig vehicleConfig) { |
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 add @Nullable
to the parameter vehicleConfig
.
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.
The whole class/binding does not yet have null annotations on it, I wouldn't want to do it as part of a bug fix.
bundles/org.openhab.binding.tesla/src/main/resources/OH-INF/i18n/tesla.properties
Show resolved
Hide resolved
Signed-off-by: Kai Kreuzer <kai@openhab.org>
@lolodomo Thanks for the quick review - I have addressed your comments. |
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.
LGTM, thank you
* Fix discovery of Tesla vehicles from account Signed-off-by: Kai Kreuzer <kai@openhab.org>
* Fix discovery of Tesla vehicles from account Signed-off-by: Kai Kreuzer <kai@openhab.org>
* Fix discovery of Tesla vehicles from account Signed-off-by: Kai Kreuzer <kai@openhab.org>
So far, vehicles that are asleep (which is the normal situation) are not discovered and thus not put into the Inbox, what is fairly unexpected for the user.
This change makes sure that every vehicle of the account is added to the Inbox. It defers the identification of the model to a later stage as this is only required for creating the Thing with all its channels.
Signed-off-by: Kai Kreuzer kai@openhab.org