Fix zone event zone ID including server ID (#3457)

- The zone ID sent to the server included the server ID, which could break automations listening for the zone ID (server ID isn't intended to be exposed)
This commit is contained in:
Joris Pelgröm 2023-04-08 01:10:12 +02:00 committed by GitHub
parent f540c9cb49
commit fdde72b81e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -744,7 +744,7 @@ class LocationSensorManager : LocationSensorManagerBase() {
"provider" to geofencingEvent.triggeringLocation!!.provider,
"time" to geofencingEvent.triggeringLocation!!.time,
"vertical_accuracy" to if (Build.VERSION.SDK_INT >= 26) geofencingEvent.triggeringLocation!!.verticalAccuracyMeters.toInt() else 0,
"zone" to zone
"zone" to zone.substring(zone.indexOf("_") + 1)
)
ioScope.launch {
try {