2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

MAX: Fix last commit

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

View File

@ -537,7 +537,7 @@ MAX_Set($@)
# check if Wallthermo is in same group
foreach my $addr ( keys %{$modules{MAX}{defptr}} ) {
$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) {