Skip to content

Commit

Permalink
uzsu plugin: add seconds to info on next UZSU setting
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Apr 29, 2024
1 parent 5c788a0 commit b87a773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uzsu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b87a773

Please sign in to comment.