From 6d844f0ad26a6b603fdd853214c14f9d61645468 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Wed, 21 May 2014 15:34:59 +0000 Subject: [PATCH] configDB - added: possibility to start without reading states git-svn-id: https://svn.fhem.de/fhem/trunk@5920 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 49ecd7a6c..6b92cdc47 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -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);