2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +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 ### Close UDP scanning
delete $selectlist{$name}; delete $selectlist{$name};
$hash->{CD}->close(); if (defined($hash->{CD})) {
delete $hash->{CD}; $hash->{CD}->close();
delete $hash->{CD};
}
delete $hash->{FD}; delete $hash->{FD};
### Add Log entry ### Add Log entry
Log3 $name, 3, $name. " - DoorBird has been undefined. The DoorBird unit will no longer polled."; 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} ); readingsBulkUpdate($hash, $key, $VersionContent -> {$key} );
} }
} }
### Update Reading for Firmware-Status
readingsBulkUpdate($hash, "Firmware-Status", "up-to-date");
### Update SessionId ### Update SessionId
DoorBird_RenewSessionID($hash); DoorBird_RenewSessionID($hash);
@ -3971,14 +3970,9 @@ sub DoorBird_SipStatus_Request($$) {
readingsBulkUpdate($hash, "SIP_" . $key, $VersionContent -> {$key} ); readingsBulkUpdate($hash, "SIP_" . $key, $VersionContent -> {$key} );
} }
} }
### Update Reading for Firmware-Status
readingsBulkUpdate($hash, "Firmware-Status", "up-to-date");
### Execute Readings Bulk Update ### Execute Readings Bulk Update
readingsEndUpdate($hash, 1); readingsEndUpdate($hash, 1);
### Check for Firmware-Updates
DoorBird_FirmwareStatus($hash);
return "Readings have been updated!\n"; return "Readings have been updated!\n";
} }