home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.34k stars 30.64k forks source link

Fix "home" route in Tesla Fleet & Teslemetry #129546

Closed Bre77 closed 3 days ago

Bre77 commented 4 days ago

Proposed change

Tesla vehicles return the name of the location they are navigating to, and this is passed to the device tracker entity. However this causes an issue with the "Home" location. The vehicle tells Home Assistant is navigating Home but the entity expects the special value of home. So certain automation conditions checking if the state == home failed because its actually Home, despite the location being the same.

This PR forces location names of Home to home so they they can be translated and work on the device tracker device condition.

Type of change

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

To help with the load of incoming pull requests: