Skip to content

v1.2.2 - Logging Fix

Choose a tag to compare

@cursor cursor released this 03 Jan 19:05
· 36 commits to main since this release

Bug Fix

Fixed logging error when creating tasks/routines:

RoutinelyLogger.info() takes 2 positional arguments but 4 were given

Cause

The custom logger expected keyword arguments but was being called with printf-style positional arguments.

Solution

Changed all logging calls from:

_log.info("Created task: %s (%s)", task.name, task.id)

To:

_log.info("Created task", name=task.name, id=task.id)

Update

Update via HACS and restart Home Assistant.