mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-08 05:15:10 +00:00
CUL_FHTTK: Check for state when not a number fixed (betateilchen?)
git-svn-id: https://svn.fhem.de/fhem/trunk@3998 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
08962d1dce
commit
799a4664bb
@ -199,7 +199,7 @@ CUL_FHTTK_Parse($$)
|
|||||||
$defs{$self}{READINGS}{"Previous"}{TIME} = "";
|
$defs{$self}{READINGS}{"Previous"}{TIME} = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined($defs{$self}{PREV}{STATE}) && $defs{$self}{PREV}{STATE} != $state) {
|
if (defined($defs{$self}{PREV}{STATE}) && $defs{$self}{PREV}{STATE} ne $state) {
|
||||||
my $prevState = $defs{$self}{PREV}{STATE};
|
my $prevState = $defs{$self}{PREV}{STATE};
|
||||||
my ($windowReading,$windowState) = split(/:/, $fhttfk_codes{$prevState});
|
my ($windowReading,$windowState) = split(/:/, $fhttfk_codes{$prevState});
|
||||||
$defs{$self}{READINGS}{"Previous"}{VAL} = $windowState if defined($windowState) && $windowState ne "";
|
$defs{$self}{READINGS}{"Previous"}{VAL} = $windowState if defined($windowState) && $windowState ne "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user