2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 05:06:35 +00:00

configDB - added: possibility to start without reading states

git-svn-id: https://svn.fhem.de/fhem/trunk@5920 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-05-21 15:34:59 +00:00
parent ea0c197c1b
commit 6d844f0ad2

View File

@ -166,6 +166,8 @@ if($cfgDB_dbconn =~ m/pg:/i) {
$cfgDB_dbtype = "unknown";
}
$attr{configdb}{nostate} = 1 if($ENV{'cfgDB_nostate'});
##################################################
# Basic functions needed for DB configuration
# directly called from fhem.pl
@ -312,7 +314,7 @@ sub cfgDB_ReadAll($) {
# add Config Rows to commandfile
@dbconfig = _cfgDB_ReadCfg(@dbconfig);
# add State Rows to commandfile
@dbconfig = _cfgDB_ReadState(@dbconfig);
@dbconfig = _cfgDB_ReadState(@dbconfig) unless $attr{configdb}{nostate};
# AnalyzeCommandChain for all entries
$ret = _cfgDB_Execute($cl, @dbconfig);
return $ret if($ret);