Skip to content

Releases: Woyken/py-huckleberry-api

v0.4.0

24 Mar 15:13
aba2bf8

Choose a tag to compare

What's New

Features

  • Backfill historical entries — New explicit-timestamp APIs let you log completed past events for sleep, nursing, bottle, solids, diaper, potty, and growth tracking. (#11)
  • Activity tracking — Added log_activity(), list_activity_intervals(), and realtime activity listeners. (#12)

Breaking Changes

  • Interval range query APIs (list_*_intervals) now accept datetime objects instead of raw Unix-timestamp integers.

v0.3.0

16 Mar 05:12
6080574

Choose a tag to compare

Added pumping support

  • Added pumping logging adn subscribe to last pump state
  • Allow nursing left and right durations to be null

v0.2.3

12 Mar 13:24
58f3c5d

Choose a tag to compare

Bug Fixes

  • Set required python version to 3.14
  • Mark lastUpdated properties as optional, older entries might not have this field set

v0.2.2

10 Mar 21:14
b1b1a3d

Choose a tag to compare

Bugfixes

  • Align growth Firebase models and listener handling with the live app's imperial payload shape, including composite units like lbs.oz, while keeping imperial growth writes on the supported field set.

v0.2.1

08 Mar 20:22
91507de

Choose a tag to compare

Patch release focused on Firebase summary-map cleanup handling.

Bugfixes

  • Allow empty Firebase prefs.last* summary maps to validate after a child's sleep, feeding, or diaper history has been cleared.

Packaging

  • Bump the published package version to 0.2.1.
  • Regenerate CHANGELOG.md from the Towncrier fragment for this release.

v0.2.0

07 Mar 21:24
941ee09

Choose a tag to compare

This release introduces a stricter and cleaner API surface for Huckleberry data access.

Breaking changes:

  • The client now requires an injected aiohttp web session.
  • The separate solids interval API path has been removed.
  • Firebase models are now strict, which may reject payload shapes that were previously accepted.

Highlights:

  • Added HuckleberryAPI.log_potty() for potty events stored in the shared diaper tracker.
  • Migrated the client to strict Firebase schema models.
  • Potty changes continue to be observed through the existing diaper listener.

v0.1.19

17 Feb 10:50
2dc9043

Choose a tag to compare

Added

  • NEW API METHOD: log_bottle_feeding() for logging bottle feedings as instant events.
  • Supports bottle types: "Breast Milk", "Formula", and "Mixed".
  • Records amount and units (ml or oz).
  • Creates interval documents in feed/{child_uid}/intervals with mode="bottle".
  • Updates prefs.lastBottle and document-level bottle preferences.
  • Added bottle-specific type definitions: BottleType, VolumeUnits, LastBottleData, FirebaseBottleInterval.
  • Refactored feed interval typing into union types for breast/bottle/solids entries.
  • Added bottle feeding integration tests and updated data structure docs.

Fixed

  • Calendar compatibility: get_feed_intervals() now preserves bottle metadata fields.
  • Passes through mode, type, bottleType, amount, units, bottleAmount, and bottleUnits.
  • Prevents bottle entries from being misclassified downstream as zero-duration breastfeeding events.

v0.1.18

05 Jan 12:50
ffbd217

Choose a tag to compare

Added

  • TIMEZONE SUPPORT: Custom timezone support for API operations
    • HuckleberryAPI now accepts \ imezone\ parameter (e.g., \Europe/London)
    • Added \ zdata>=2024.1\ dependency for cross-platform timezone support

Fixed

  • MULTIPLE CHILDREN: Use \childList\ instead of \lastChild\ for retrieving children
    • Fixes issue where only the last active child was returned
    • Now properly returns all children associated with the account

v0.1.17 - Metadata Fix (Complete)

16 Dec 15:38
701c47f

Choose a tag to compare

Fixed

Metadata

  • CORRECTED: PyPI project URLs now point to correct repository
    • Homepage, Repository, and Issues URLs fixed from \huckleberry-homeassistant\ to \py-huckleberry-api\
    • Package metadata on PyPI will now show correct links to source code and issue tracker

Note

This is a re-release of v0.1.16 with all commits properly included in the release tag.

v0.1.16 - Metadata Fix

16 Dec 15:34
25d4167

Choose a tag to compare

Fixed

Metadata

  • CORRECTED: PyPI project URLs now point to correct repository
    • Homepage, Repository, and Issues URLs fixed from \huckleberry-homeassistant\ to \py-huckleberry-api\
    • Package metadata on PyPI will now show correct links to source code and issue tracker