Redact the area of traccar server geofences (#113861)

pull/113870/head
Joakim Sørensen 2024-03-20 08:23:16 +01:00 committed by GitHub
parent fff590d738
commit 96694878fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,12 @@ from homeassistant.helpers import device_registry as dr, entity_registry as er
from .const import DOMAIN from .const import DOMAIN
from .coordinator import TraccarServerCoordinator 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( async def async_get_config_entry_diagnostics(

View File

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