Skip to content

Tibber: Fix API call#251

Merged
MaStr merged 3 commits intomainfrom
issue-250-tibber-api
Feb 3, 2026
Merged

Tibber: Fix API call#251
MaStr merged 3 commits intomainfrom
issue-250-tibber-api

Conversation

@MaStr
Copy link
Owner

@MaStr MaStr commented Feb 3, 2026

Closes #250

@MaStr MaStr requested a review from Copilot February 3, 2026 18:15
@MaStr MaStr self-assigned this Feb 3, 2026
@MaStr MaStr added the bug Something isn't working label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the Tibber API integration where API calls were failing with "Bad request" errors. The issue was caused by using an incorrect API parameter value "QUARTERLY" instead of the correct "QUARTER_HOURLY" for 15-minute resolution price data.

Changes:

  • Corrected API resolution parameter from "QUARTERLY" to "QUARTER_HOURLY" for 15-minute price intervals
  • Reformatted GraphQL query from single-line to multi-line for better readability
  • Added proper JSON encoding using json.dumps() instead of string formatting

MaStr and others added 2 commits February 3, 2026 19:20
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MaStr MaStr merged commit 0b7d712 into main Feb 3, 2026
10 checks passed
@MaStr MaStr deleted the issue-250-tibber-api branch February 3, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tibber broken in 0.6.0

2 participants