@@ -7,6 +7,7 @@ module.exports = function (RED) {
77 const realConstructor = async ( config ) => {
88 RED . nodes . createNode ( this , config ) ;
99 const connectionConfig = RED . nodes . getNode ( config . connection ) ;
10+ this . status ( { } ) ;
1011 this . lastValue = undefined ;
1112 if ( connectionConfig && config . thing !== "" && config . thing !== "0" && config . property !== "" && config . property !== "0" ) {
1213 try {
@@ -52,6 +53,7 @@ module.exports = function (RED) {
5253 const realConstructor = async ( config ) => {
5354 RED . nodes . createNode ( this , config ) ;
5455 const connectionConfig = RED . nodes . getNode ( config . connection ) ;
56+ this . status ( { } ) ;
5557 if ( connectionConfig && config . thing !== "" && config . thing !== "0" && config . property !== "" && config . property !== "0" ) {
5658 try {
5759
@@ -95,6 +97,7 @@ module.exports = function (RED) {
9597 const realConstructor = async ( config ) => {
9698 RED . nodes . createNode ( this , config ) ;
9799 const connectionConfig = RED . nodes . getNode ( config . connection ) ;
100+ this . status ( { } ) ;
98101 const node = this ;
99102 this . timeWindowCount = config . timeWindowCount ;
100103 this . timeWindowUnit = config . timeWindowUnit ;
@@ -165,6 +168,7 @@ module.exports = function (RED) {
165168 const realConstructor = async ( config ) => {
166169 RED . nodes . createNode ( this , config ) ;
167170 const connectionConfig = RED . nodes . getNode ( config . connection ) ;
171+ this . status ( { } ) ;
168172 this . timeWindowCount = config . timeWindowCount ;
169173 this . timeWindowUnit = config . timeWindowUnit ;
170174 if ( connectionConfig && config . thing !== "" && config . thing !== "0" && config . property !== "" && config . property !== "0" ) {
@@ -228,6 +232,7 @@ module.exports = function (RED) {
228232 const realConstructor = async ( config ) => {
229233 RED . nodes . createNode ( this , config ) ;
230234 const connectionConfig = RED . nodes . getNode ( config . connection ) ;
235+ this . status ( { } ) ;
231236 const node = this ;
232237 if ( connectionConfig && config . thing !== "" && config . thing !== "0" && config . property !== "" && config . property !== "0" ) {
233238 try {
0 commit comments