2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: fix IsDisabled (Forum #42915)

git-svn-id: https://svn.fhem.de/fhem/trunk@9648 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-10-25 10:11:46 +00:00
parent cfa132a9cd
commit c3b82e72dc

View File

@ -752,6 +752,7 @@ IsDisabled($)
return 1 if($attr{$devname}{disable});
return 3 if($defs{$devname} && $defs{$devname}{STATE} &&
$defs{$devname}{STATE} eq "inactive");
return 3 if(ReadingsVal($devname, "state", "") eq "inactive");
my $dfi = $attr{$devname}{disabledForIntervals};
if(defined($dfi)) {