fix alive check error on software bridge
This commit is contained in:
parent
cdb2c5e46b
commit
fe3e5fe24a
@ -353,7 +353,7 @@ sub NUKIBridge_Distribution($$$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( $json eq "" and exists( $param->{code} ) && $param->{code} ne 200 ) {
|
if( ($json eq "" or $json =~ /Error/i ) and exists( $param->{code} ) and $param->{code} ne 200 ) {
|
||||||
if( $param->{endpoint} eq "alive") {
|
if( $param->{endpoint} eq "alive") {
|
||||||
|
|
||||||
readingsBulkUpdate( $hash, "state", "connected" );
|
readingsBulkUpdate( $hash, "state", "connected" );
|
||||||
|
Loading…
Reference in New Issue
Block a user