Skip to content
Snippets Groups Projects
Commit 98522533 authored by Manuel Krombholz's avatar Manuel Krombholz
Browse files

Fixed missing rewrite property of item

parent fd9c1605
Branches
No related tags found
No related merge requests found
Pipeline #10609 passed
......@@ -10,6 +10,7 @@ aspect LastChanged {
double frequency = frequencySetting.getEventProcessingFrequency();
Instant lastStateChange = this.getValue();
if (lastStateChange == null) {
//First state change always allowed
return true;
}
return Instant.now().toEpochMilli() - lastStateChange.toEpochMilli() > (1 / frequency) * 1000;
......
......@@ -44,6 +44,9 @@ aspect SmartHomeEntityModel {
}
result.enableSendState();
}
if (this.hasFrequencySetting()) {
result.setFrequencySetting(this.getFrequencySetting());
}
return result;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment