MAX: Fix last commit

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4507 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2013-12-30 12:47:07 +00:00
parent e326c4ae93
commit 7da085d959

View File

@ -537,7 +537,7 @@ MAX_Set($@)
# check if Wallthermo is in same group # check if Wallthermo is in same group
foreach my $addr ( keys %{$modules{MAX}{defptr}} ) { foreach my $addr ( keys %{$modules{MAX}{defptr}} ) {
$shash = $modules{MAX}{defptr}{$addr}; $shash = $modules{MAX}{defptr}{$addr};
$wallthermo = 1 if((MAX_ReadingsVal($shash,"groupid") eq MAX_ReadingsVal($hash,"groupid")) and $shash->{type} eq "WallMountedThermostat"); $wallthermo = 1 if(defined $shash->{type} && $shash->{type} eq "WallMountedThermostat" && (MAX_ReadingsVal($shash,"groupid") eq MAX_ReadingsVal($hash,"groupid")));
} }
if ($wallthermo eq 1) { if ($wallthermo eq 1) {