mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
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:
parent
e326c4ae93
commit
7da085d959
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user