Skip to content

v2.11.0

Choose a tag to compare

@jeyrb jeyrb released this 10 Nov 00:46
· 27 commits to main since this release

✨ Enhancements

  • Optional strict RFC 5424 mode for Syslog, for receivers such as Grafana Alloy that check messages closely
    • Structured data uses Home Assistant names (name, source, exception, event_type and so on) and event data keys are shortened to fit the 32-character limit, e.g. new.attr.friendly_name
    • MSGID is cut to 32 characters
    • The SD-ID is homeassistant@<number>, using an IANA Private Enterprise Number if one is entered, otherwise the RFC 5612 documentation number 32473
    • Off by default, so existing Syslog output, with its OTEL names, is unchanged

🐛 Bug fixes

  • Syslog messages for Home Assistant events other than system_log_event had an unquoted eventName, which strict RFC 5424 receivers rejected (#113)
  • Syslog exception.stacktrace values weren't escaped, so a stacktrace containing ", \ or ] broke the structured data (#113)
  • Log records from worker threads at the very end of Home Assistant shutdown no longer try to schedule a flush on the stopped event loop, which left a "coroutine was never awaited" warning and counted as a format error

📝 Other changes

Internal

  • mypy now runs in strict mode, meeting the Home Assistant Integration Quality Scale strict-typing rule

What's Changed

  • Remove SECURITY.md in favour of the org default by @jeyrb in #106
  • README: absolute docs links so they work from HACS by @jeyrb in #107
  • Use prek and 7-day release cooldowns by @jeyrb in #108
  • Cooldowns: 2 days for trusted packages, mise cooldown, drop pre-commit.ci by @jeyrb in #109
  • Test Home Assistant 2026.11 with pytest-homeassistant by @jeyrb in #110
  • Add 'managed by hq' badge by @jeyrb in #111
  • Fix syslog structured data escaping (#113) and add strict RFC 5424 mode by @jeyrb in #114
  • Avoid regex character ranges for RFC 5424 SD-NAME (CodeQL) by @jeyrb in #115
  • Fix hassfest translation error, test warnings, and flushes scheduled at shutdown by @jeyrb in #116
  • Strict mypy and Pylance-clean tests by @jeyrb in #118

Full Changelog: v2.10.0...v2.11.0