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