BMW device tracker - fix toggling state if vehicle tracking is disabled#12999
Conversation
|
@ChristianKuehnel Was wondering why this PR is closed as this will be a solution to prevent toggling of the device tracker when remote tracking is disabled? |
|
Honestly I have no idea. I guess I closed the wrong ticket... |
This fixes an issue with a toggling vehicle state.
776f72a to
351bc62
Compare
|
Do we really need all of the different name attributes of the tracker? I just used the pattern I saw in tesla, but I'm not sure if that really makes sense: |
|
Attributes are optional. |
|
Let me know when to merge. |
|
@MartinHjelmare Thx for the review and the hint. I removed the attributes as they are redundant... Ready to be merged. |
Description:
If remote tracking is disabled in the vehicle, the position was toggling in the device tracker. Now, the position in the device trackier is only updated if remote tracking is enabled.
Related issue (if applicable): fixes ##12698
Pull request in home-assistant.github.io with documentation (if applicable): N/A
Example entry for
configuration.yaml(if applicable):no changes
Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
toxrun successfully. Your PR cannot be merged unless tests pass