2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

73_DoorBird.pm Changed: Redundant firmware checks removed

git-svn-id: https://svn.fhem.de/fhem/trunk@21252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Sailor 2020-02-22 23:03:50 +00:00
parent 26507316a7
commit aa887bc042

View File

@ -297,8 +297,10 @@ sub DoorBird_Undefine($$)
### Close UDP scanning
delete $selectlist{$name};
$hash->{CD}->close();
delete $hash->{CD};
if (defined($hash->{CD})) {
$hash->{CD}->close();
delete $hash->{CD};
}
delete $hash->{FD};
### Add Log entry
Log3 $name, 3, $name. " - DoorBird has been undefined. The DoorBird unit will no longer polled.";
@ -2214,9 +2216,6 @@ sub DoorBird_Info_Request($$) {
readingsBulkUpdate($hash, $key, $VersionContent -> {$key} );
}
}
### Update Reading for Firmware-Status
readingsBulkUpdate($hash, "Firmware-Status", "up-to-date");
### Update SessionId
DoorBird_RenewSessionID($hash);
@ -3971,14 +3970,9 @@ sub DoorBird_SipStatus_Request($$) {
readingsBulkUpdate($hash, "SIP_" . $key, $VersionContent -> {$key} );
}
}
### Update Reading for Firmware-Status
readingsBulkUpdate($hash, "Firmware-Status", "up-to-date");
### Execute Readings Bulk Update
readingsEndUpdate($hash, 1);
### Check for Firmware-Updates
DoorBird_FirmwareStatus($hash);
return "Readings have been updated!\n";
}