Skip to content

Commit

Permalink
switch docker to py3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
nobbi1991 committed Sep 26, 2024
1 parent 323ccd0 commit 2d741ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11 as buildimage
FROM python:3.12 as buildimage

COPY . /tmp/app_install

Expand All @@ -7,7 +7,7 @@ RUN set -eux; \
cd /tmp/app_install; \
pip wheel --wheel-dir=/root/wheels .

FROM python:3.11
FROM python:3.12

COPY --from=buildimage /root/wheels /root/wheels
COPY container/entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion habapp_rules/common/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, config: habapp_rules.common.config.filter.ExponentialFilterCo

sample_time = self._config.parameter.tau / 5 # fifth part of the filter time constant
self._alpha = 0.2 # always 0.2 since we always have the fifth part of the filter time constant
self.run.every(None, sample_time, self._cb_cyclic_calculate_and_update_output)
self.run.at(self.run.trigger.interval(None, sample_time), self._cb_cyclic_calculate_and_update_output)

if self._config.parameter.instant_increase or self._config.parameter.instant_decrease:
self._config.items.raw.listen_event(self._cb_item_raw, HABApp.openhab.events.ItemStateChangedEventFilter())
Expand Down

0 comments on commit 2d741ac

Please sign in to comment.