2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

93_DbRep: contrib 8.8.0

git-svn-id: https://svn.fhem.de/fhem/trunk@17696 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2018-11-06 19:16:26 +00:00
parent 44b2fe9898
commit 972b32dd94

View File

@ -1051,10 +1051,7 @@ sub DbRep_Attr($$$$) {
$do = 0 if($cmd eq "del");
my $val = ($do == 1 ? "disabled" : "initialized");
ReadingsSingleUpdateValue ($hash, "state", $val, 1);
if ($do == 0) {
#RemoveInternalTimer($hash);
#InternalTimer(time+5, 'DbRep_firstconnect', "$name|||", 0);
} else {
if ($do == 1) {
my $dbh = $hash->{DBH};
$dbh->disconnect() if($dbh);
}
@ -1365,7 +1362,7 @@ sub DbRep_firstconnect(@) {
if ($init_done == 1) {
if (AttrVal($name, "fastStart", 0) && $prop eq "onBoot" ) {
$hash->{LASTCMD} = "init database connect stopped due to attribute fastStart";
$hash->{LASTCMD} = "initial database connect stopped due to attribute 'fastStart'";
return;
}
# DB Struktur aus DbLog Instanz übernehmen