mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
74_AutomowerConnect: reversed last change, fix another wrong API timestamp unit.
git-svn-id: https://svn.fhem.de/fhem/trunk@29858 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
97509dc877
commit
ae1dac6713
@ -2951,7 +2951,7 @@ sub listErrorStack {
|
||||
|
||||
for ( my $i = 0; $i < @{ $hash->{helper}{endpoints}{messages}{attributes}{messages} }; $i++ ) {
|
||||
|
||||
$ret .= '<tr class="column '.( $cnt++ % 2 ? 'odd' : 'even' ).'"><td> ' . FmtDateTime( $msg[$i]{time} ) . ' </td><td> ' . $msg[$i]{severity} . ' - ' . $errortable->{ $msg[$i]{code} } . ' </td><td> ' . ( defined $msg[$i]{longitude} ? $msg[$i]{longitude} : '-' ) . ' / ' . ( defined $msg[$i]{latitude} ? $msg[$i]{latitude} : '-' ) . ' </td></tr>';
|
||||
$ret .= '<tr class="column '.( $cnt++ % 2 ? 'odd' : 'even' ).'"><td> ' . FmtDateTimeGMT( $msg[$i]{time} ) . ' </td><td> ' . $msg[$i]{severity} . ' - ' . $errortable->{ $msg[$i]{code} } . ' </td><td> ' . ( defined $msg[$i]{longitude} ? $msg[$i]{longitude} : '-' ) . ' / ' . ( defined $msg[$i]{latitude} ? $msg[$i]{latitude} : '-' ) . ' </td></tr>';
|
||||
|
||||
}
|
||||
|
||||
@ -3451,7 +3451,13 @@ sub wsRead { ## no critic (ProhibitExcessComplexity [complexity core maintenanc
|
||||
|
||||
}
|
||||
|
||||
$hash->{helper}{mower}{attributes}{mower}{errorCodeTimestamp} = $result->{attributes}{mower}{errorCodeTimestamp} if ( defined $result->{attributes}{mower}{errorCodeTimestamp} );
|
||||
if ( defined $result->{attributes}{mower}{errorCodeTimestamp} ) {
|
||||
|
||||
my $tmp = $result->{attributes}{mower}{errorCodeTimestamp};
|
||||
$hash->{helper}{mower}{attributes}{mower}{errorCodeTimestamp} = length( $tmp ) == 10 ? $tmp * 1000 : $tmp;
|
||||
|
||||
}
|
||||
|
||||
$hash->{helper}{mower}{attributes}{mower}{isErrorConfirmable} = $result->{attributes}{mower}{isErrorConfirmable} if ( defined $result->{attributes}{mower}{isErrorConfirmable} );
|
||||
|
||||
if ( !$additional_polling ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user