2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

30_HUEBridge.pm: better check of nupnp detection result

git-svn-id: https://svn.fhem.de/fhem/trunk@7644 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2015-01-20 19:57:01 +00:00
parent c0d429e420
commit c7a071b235

View File

@ -70,7 +70,7 @@ HUEBridge_Define($$)
if( !defined($host) ) {
my $ret = HUEBridge_HTTP_Request(0,"http://www.meethue.com/api/nupnp","GET",undef,undef,undef);
if( defined($ret) && $ret ne '' )
if( defined($ret) && $ret ne '' && $ret =~ m/^[\[{].*[\]}]$/ )
{
my $obj = from_json($ret);