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