From b87a773103a67c526f481987e04958df598d0033 Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Mon, 29 Apr 2024 22:59:27 +0200 Subject: [PATCH] uzsu plugin: add seconds to info on next UZSU setting --- uzsu/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uzsu/__init__.py b/uzsu/__init__.py index 62e0a026c..ec1cd4a7f 100755 --- a/uzsu/__init__.py +++ b/uzsu/__init__.py @@ -710,8 +710,9 @@ def _schedule(self, item, caller=None): self._items[item]['interpolation']['type'] = 'none' self._update_item(item, 'UZSU Plugin', 'reset_interpolation') if _caller != "dry_run": + self._update_item(item, 'UZSU Plugin', 'add_scheduler') self.logger.debug(f'will add scheduler named uzsu_{item.property.path} with datetime {_next} and tzinfo {_next.tzinfo} and value {_value}') - self._planned.update({item: {'value': _value, 'next': _next.strftime('%Y-%m-%d %H:%M')}}) + self._planned.update({item: {'value': _value, 'next': _next.strftime('%Y-%m-%d %H:%M:%S')}}) self._webdata['items'][item.property.path].update({'planned': {'value': _value, 'time': _next.strftime('%d.%m.%Y %H:%M')}}) self._update_count['done'] = self._update_count.get('done', 0) + 1 self.scheduler_add(item.property.path, self._set,