mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
74_AutomowerConnect: fix warning for unknown error code.
git-svn-id: https://svn.fhem.de/fhem/trunk@29854 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4adf0d32dc
commit
b3922e20bc
@ -2190,7 +2190,7 @@ sub isErrorThanPrepare {
|
||||
my $ect = $hash->{helper}{mower}{attributes}{mower}{errorCodeTimestamp};
|
||||
$hash->{helper}{lasterror}{timestamp} = $ect;
|
||||
my $errc = $hash->{helper}{mower}{attributes}{mower}{errorCode};
|
||||
$hash->{helper}{lasterror}{errordesc} = $errortable->{$errc};
|
||||
$hash->{helper}{lasterror}{errordesc} = $errortable->{$errc} // 'No error description available for error code: ' . $errc;
|
||||
$hash->{helper}{lasterror}{errordate} = FmtDateTime( $ect / 1000 );
|
||||
$hash->{helper}{lasterror}{errorstate} = $hash->{helper}{mower}{attributes}{mower}{state};
|
||||
$hash->{helper}{lasterror}{errorzone} = $hash->{helper}{currentZone} if ( defined( $hash->{helper}{currentZone} ) );
|
||||
@ -2601,7 +2601,7 @@ sub fillReadings {
|
||||
|
||||
if ( $errc =~ /\d+/ ) {;
|
||||
|
||||
my $errd = $errortable->{$errc};
|
||||
my $errd = $errortable->{$errc} // 'No error description available for error code: ' . $errc;
|
||||
readingsBulkUpdateIfChanged( $hash, $pref.'_errorDescription', $tstamp ? $errd : '-');
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user