Skip to content

Commit

Permalink
chore: update to OH4
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickgell committed Jul 25, 2023
1 parent 176a9a9 commit 0f46443
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.openems/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.addons.reactor.bundles</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.1.0-SNAPSHOT</version>
</parent>

<artifactId>org.openhab.binding.openems</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ public void dispose() {

private void startAutomaticRefresh() {
refreshTask = scheduler.scheduleWithFixedDelay(this::refreshState, 0, refreshTime, TimeUnit.SECONDS);
logger.debug("Start automatic refresh at {} minutes!", refreshTime);
logger.debug("Start automatic refresh at {} seconds!", refreshTime);
}

private void refreshState() {
logger.debug("Refresh data");
HashMap<String, OpenEMSData> data = fetchData();
boolean dataUpdated = updateDataIfChanged(data);
if (dataUpdated) {
Expand Down
1 change: 1 addition & 0 deletions bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
<module>org.openhab.binding.onewiregpio</module>
<module>org.openhab.binding.onewire</module>
<module>org.openhab.binding.onkyo</module>
<module>org.openhab.binding.openems</module>
<module>org.openhab.binding.opengarage</module>
<module>org.openhab.binding.opensprinkler</module>
<module>org.openhab.binding.openthermgateway</module>
Expand Down

0 comments on commit 0f46443

Please sign in to comment.