[homekit] handle NULL/UNDEF for temperature characteristics (#12172)

recent regression from handling QuantityType

Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
Cody Cutrer
2022-01-30 10:46:56 -07:00
committed by GitHub
parent 00da156b1b
commit 8794ff860e

View File

@@ -262,7 +262,7 @@ public class HomekitCharacteristicFactory {
}
public static @Nullable Double stateAsTemperature(@Nullable State state) {
if (state == null) {
if (state == null || state instanceof UnDefType) {
return null;
}