fix InternalTimer change interval

This commit is contained in:
Marko Oldenburg 2017-11-20 23:45:06 +01:00
parent a465eb49c7
commit de90d6fb6b

View File

@ -47,7 +47,7 @@ use JSON;
use Blocking;
my $version = "1.2.2";
my $version = "1.2.3";
my %CallBatteryFirmwareAge = ( '8h' => 28800,
'16h' => 57600,
'24h' => 86400,
@ -248,6 +248,8 @@ sub XiaomiFlowerSens_Notify($$) {
XiaomiFlowerSens_stateRequestTimer($hash) if( grep /^INITIALIZED$/,@{$events}
or grep /^DELETEATTR.$name.disable$/,@{$events}
or grep /^DELETEATTR.$name.interval$/,@{$events}
or grep /^ATTR.$name.interval.[0-9]+/,@{$events}
or (grep /^DEFINED.$name$/,@{$events} and $init_done) );
return;
}