Redact the area of traccar server geofences (#113861)

This commit is contained in:
Joakim Sørensen 2024-03-20 08:23:16 +01:00 committed by Paulus Schoutsen
parent 8056886c66
commit 1e57f52ba2
2 changed files with 8 additions and 3 deletions

View File

@ -12,7 +12,12 @@ from homeassistant.helpers import device_registry as dr, entity_registry as er
from .const import DOMAIN
from .coordinator import TraccarServerCoordinator
TO_REDACT = {CONF_ADDRESS, CONF_LATITUDE, CONF_LONGITUDE}
TO_REDACT = {
CONF_ADDRESS,
CONF_LATITUDE,
CONF_LONGITUDE,
"area", # This is the polygon area of a geofence
}
async def async_get_config_entry_diagnostics(

View File

@ -34,7 +34,7 @@
'uniqueId': 'abc123',
}),
'geofence': dict({
'area': 'string',
'area': '**REDACTED**',
'attributes': dict({
}),
'calendarId': 0,
@ -134,7 +134,7 @@
'uniqueId': 'abc123',
}),
'geofence': dict({
'area': 'string',
'area': '**REDACTED**',
'attributes': dict({
}),
'calendarId': 0,