Skip to content

Commit

Permalink
Add library version to diag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Sep 19, 2024
1 parent cd02a58 commit 4f90e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/teslemetry/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant

from tesla_fleet_api.const import VERSION

VEHICLE_REDACT = [
"id",
Expand Down Expand Up @@ -49,4 +49,4 @@ async def async_get_config_entry_diagnostics(
]

# Return only the relevant children
return {"vehicles": vehicles, "energysites": energysites, "scopes": entry.runtime_data.scopes}
return {"library": VERSION, "vehicles": vehicles, "energysites": energysites, "scopes": entry.runtime_data.scopes}

0 comments on commit 4f90e69

Please sign in to comment.