From 617ee64228fd0a46f411c0bac2590c2e705c828f Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 10 Jul 2018 10:52:17 +0200 Subject: [PATCH] fix Warnings -Use of uninitialized value in string- --- 73_NUKIBridge.pm | 4 ++-- 74_NUKIDevice.pm | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/73_NUKIBridge.pm b/73_NUKIBridge.pm index db15492..8810c40 100644 --- a/73_NUKIBridge.pm +++ b/73_NUKIBridge.pm @@ -46,8 +46,8 @@ use JSON; use HttpUtils; -my $version = "0.6.2"; -my $bridgeapi = "1.5"; +my $version = "0.6.3"; +my $bridgeapi = "1.6"; diff --git a/74_NUKIDevice.pm b/74_NUKIDevice.pm index 1872bce..5a059e7 100644 --- a/74_NUKIDevice.pm +++ b/74_NUKIDevice.pm @@ -33,7 +33,7 @@ use warnings; use JSON; -my $version = "0.6.2"; +my $version = "0.6.3"; @@ -213,8 +213,6 @@ sub NUKIDevice_Attr(@) { return "Invalid value for attribute $attrName: can only by FQDN or IPv4 or IPv6 address" if ( $attrVal && $attrName eq "webhookHttpHostname" && $attrVal !~ /^([A-Za-z_.0-9]+\.[A-Za-z_.0-9]+)|[0-9:]+$/ ); - return "Invalid value for attribute $attrName: needs to be different from the defined name/address of your Smartlock, we need to know how Smartlock can connect back to FHEM here!" if ( $attrVal && $attrName eq "webhookHttpHostname" && $attrVal eq $hash->{DeviceName} ); - return "Invalid value for attribute $attrName: FHEMWEB instance $attrVal not existing" if ( $attrVal && $attrName eq "webhookFWinstance" && ( !defined( $defs{$attrVal} ) || $defs{$attrVal}{TYPE} ne "FHEMWEB" ) ); return "Invalid value for attribute $attrName: needs to be an integer value" if ( $attrVal && $attrName eq "webhookPort" && $attrVal !~ /^\d+$/ );