[homekit] switch to official Java HAP lib release (#11671)

Signed-off-by: Eugen Freiter <freiter@gmx.de>
This commit is contained in:
eugen 2021-12-01 09:43:41 +01:00 committed by GitHub
parent c6798ea4fa
commit 66d6a3f0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -20,9 +20,9 @@
<dependencies>
<dependency>
<groupId>com.github.j-n-k</groupId>
<artifactId>hap-java</artifactId>
<version>2.1.0.OH</version>
<groupId>io.github.hap-java</groupId>
<artifactId>hap</artifactId>
<version>2.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -74,7 +74,7 @@ public class HomekitGarageDoorOpenerImpl extends AbstractHomekitAccessoryImpl im
} else if (stringValue.equalsIgnoreCase(settings.doorCurrentStateOpening)) {
mode = CurrentDoorStateEnum.OPENING;
} else if (stringValue.equalsIgnoreCase(settings.doorCurrentStateStopped)) {
mode = CurrentDoorStateEnum.SOPPED;
mode = CurrentDoorStateEnum.STOPPED;
} else if (stringValue.equals("UNDEF") || stringValue.equals("NULL")) {
logger.warn("Current door state not available. Relaying value of CLOSED to HomeKit");
mode = CurrentDoorStateEnum.CLOSED;