[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user