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

Add is_vehicle_tracking_enabled on Vehicle #370

Merged
merged 2 commits into from
Nov 30, 2021
Merged

Add is_vehicle_tracking_enabled on Vehicle #370

merged 2 commits into from
Nov 30, 2021

Conversation

rikroe
Copy link
Member

@rikroe rikroe commented Nov 29, 2021

Proposed change

Add is_vehicle_tracking_enabled property on ConnectedDriveVehicle (see #318 (comment)).

Type of change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionality to this library)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:

Checklist

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works.

@codecov-commenter
Copy link

Codecov Report

Merging #370 (6c113ee) into master (28fe969) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #370      +/-   ##
==========================================
+ Coverage   96.42%   96.43%   +0.01%     
==========================================
  Files           8        8              
  Lines         894      897       +3     
==========================================
+ Hits          862      865       +3     
  Misses         32       32              
Flag Coverage Δ
3.10.x 96.32% <100.00%> (+0.01%) ⬆️
3.6 96.41% <100.00%> (+0.01%) ⬆️
3.7 96.30% <100.00%> (+0.01%) ⬆️
3.8 96.31% <100.00%> (+0.01%) ⬆️
3.9 96.31% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bimmer_connected/vehicle.py 98.29% <100.00%> (+0.04%) ⬆️
bimmer_connected/vehicle_status.py 97.93% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28fe969...6c113ee. Read the comment docs.

@rikroe rikroe requested a review from gerard33 November 29, 2021 20:58
@@ -137,6 +137,11 @@ def has_weekly_planner_service(self) -> bool:
"""Return True if charging control (weekly planner) is available."""
return self.attributes["capabilities"]["isChargingPlanSupported"]

@property
def is_vehicle_tracking_enabled(self) -> bool:
"""Return True if charging control (weekly planner) is available."""
Copy link
Member

Choose a reason for hiding this comment

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

Docstring is containing text from other function

@rikroe rikroe requested a review from gerard33 November 30, 2021 10:36
@rikroe rikroe merged commit 39213b8 into master Nov 30, 2021
@github-actions
Copy link

github-actions bot commented Dec 8, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants