Skip to content

Bump pytibber to 0.31.6 #147703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 28, 2025
Merged

Bump pytibber to 0.31.6 #147703

merged 4 commits into from
Jun 28, 2025

Conversation

Danielhiversen
Copy link
Member

Breaking change

Proposed change

Upgrade Tibber library
Danielhiversen/pyTibber@0.31.2...0.31.6

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>
Signed-off-by: Daniel Hjelseth Høyer <[email protected]>
Signed-off-by: Daniel Hjelseth Høyer <[email protected]>
Copy link
Contributor

@Copilot 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 upgrades the Tibber library from version 0.31.2 to 0.31.6 to keep the integration aligned with the upstream dependency. Key updates include:

  • Bumping the Tibber version in both test and production requirements.
  • Revising exception handling in the Tibber sensor to catch the new tibber.RetryableHttpExceptionError.
  • Updating the manifest file to reflect the new dependency version.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
requirements_test_all.txt Updated pyTibber version to 0.31.6
requirements_all.txt Updated pyTibber version to 0.31.6
homeassistant/components/tibber/sensor.py Extended exception handling for new tibber error
homeassistant/components/tibber/manifest.json Updated requirements to use pyTibber==0.31.6
Comments suppressed due to low confidence (2)

homeassistant/components/tibber/sensor.py:283

  • Confirm that tibber.RetryableHttpExceptionError is the correct exception to catch for retryable HTTP errors according to the updated pyTibber documentation.
        except (tibber.RetryableHttpExceptionError, aiohttp.ClientError) as err:

homeassistant/components/tibber/sensor.py:280

  • [nitpick] Ensure that test cases cover the scenario where tibber.RetryableHttpExceptionError is raised so that PlatformNotReady is correctly triggered in these cases.
        except TimeoutError as err:

@zweckj zweckj changed the title Upgrade Tibber library Bumpy pytibber to 0.31.6 Jun 28, 2025
@zweckj zweckj changed the title Bumpy pytibber to 0.31.6 Bump pytibber to 0.31.6 Jun 28, 2025
@zweckj zweckj merged commit d2e8a48 into dev Jun 28, 2025
48 checks passed
@zweckj zweckj deleted the tibber_0313 branch June 28, 2025 08:11
@zweckj zweckj added this to the 2025.7.0 milestone Jun 28, 2025
mback2k pushed a commit to mback2k/home-assistant that referenced this pull request Jun 28, 2025
balloob pushed a commit that referenced this pull request Jun 28, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tibber integration loses connection
3 participants