From 018d6b2a50273e8142564a14945615b5fe782d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joris=20Pelgr=C3=B6m?= Date: Fri, 15 Sep 2023 13:33:55 +0200 Subject: [PATCH] Fix device controls lock toggle action (invert) --- .../io/homeassistant/companion/android/controls/LockControl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/homeassistant/companion/android/controls/LockControl.kt b/app/src/main/java/io/homeassistant/companion/android/controls/LockControl.kt index c33058ad124..b03438bcdaa 100644 --- a/app/src/main/java/io/homeassistant/companion/android/controls/LockControl.kt +++ b/app/src/main/java/io/homeassistant/companion/android/controls/LockControl.kt @@ -48,7 +48,7 @@ object LockControl : HaControl { ): Boolean { integrationRepository.callService( action.templateId.split(".")[0], - if ((action as? BooleanAction)?.newState == true) "lock" else "unlock", + if ((action as? BooleanAction)?.newState == true) "unlock" else "lock", hashMapOf("entity_id" to action.templateId) ) return true