🚚 Migrate to get_site_time_series #41

Merged
mat merged 1 commit from migrate-site-time-series into main 2026-07-10 13:18:31 +00:00
Owner

Replaces the deprecated get_site_networks_ts_time_ago() (DeprecationWarning since comwatt-client 0.3.5) with get_site_time_series().

  • Same parameter order → call args unchanged (FLOW, NONE, None, HOUR, 1)
  • Same response shape on the new site-time-series endpoint (incl. autoproductionRates), live-verified in the client lib docs (2026-07-04)
  • Test mocks renamed accordingly

Note: get_site_consumption_breakdown_time_ago (the other method deprecated in 0.3.5) is not used by this integration, so nothing to migrate there.

Follow-up to #40.

Replaces the deprecated `get_site_networks_ts_time_ago()` (DeprecationWarning since comwatt-client 0.3.5) with `get_site_time_series()`. - Same parameter order → call args unchanged (`FLOW`, `NONE`, `None`, `HOUR`, `1`) - Same response shape on the new `site-time-series` endpoint (incl. `autoproductionRates`), live-verified in the client lib docs (2026-07-04) - Test mocks renamed accordingly Note: `get_site_consumption_breakdown_time_ago` (the other method deprecated in 0.3.5) is not used by this integration, so nothing to migrate there. Follow-up to #40.
get_site_networks_ts_time_ago() is deprecated since comwatt-client 0.3.5
and emits a DeprecationWarning. The replacement get_site_time_series()
has the same parameter order and the site-time-series endpoint returns
the same response shape (incl. autoproductionRates), so the call args
are unchanged.

get_site_consumption_breakdown_time_ago (the other deprecated method)
is not used by this integration.
mat merged commit 7824181066 into main 2026-07-10 13:18:31 +00:00
mat deleted branch migrate-site-time-series 2026-07-10 13:18:31 +00:00
mat referenced this pull request from a commit 2026-07-10 13:32:45 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mat/homeassistant-comwatt!41
No description provided.