mirror of
https://github.com/home-assistant/android
synced 2024-07-22 10:54:12 +00:00
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:
parent
f540c9cb49
commit
fdde72b81e
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue