Skip to content

Bump py-nationalgrid from 0.6.2 to 0.6.3#24

Merged
virtitnerd merged 1 commit into
mainfrom
dependabot/pip/py-nationalgrid-0.6.3
May 24, 2026
Merged

Bump py-nationalgrid from 0.6.2 to 0.6.3#24
virtitnerd merged 1 commit into
mainfrom
dependabot/pip/py-nationalgrid-0.6.3

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github May 22, 2026

Bumps py-nationalgrid from 0.6.2 to 0.6.3.

Release notes

Sourced from py-nationalgrid's releases.

v0.6.3

What's New

Electric & Gas Bill History via Business Portal Silent SSO

Two new typed client methods for retrieving per-billing-period bill history from the National Grid business portal (accountmanager.nationalgrid.com):

  • get_electric_bill_history(account_number, customer_number)list[ElectricBillRecord]
  • get_gas_bill_history(account_number, customer_number)list[GasBillRecord]

Both methods return itemised charges per billing cycle including utility/supplier charge breakdown and (for electric) demand fields. customer_number is available from get_billing_account().

Authentication: The business portal uses a separate OAuth client registration in the same B2C tenant. After the consumer portal login establishes a session, a prompt=none silent SSO request automatically acquires a business portal id_token with the correct audience — no second login prompt. The business token is cached and refreshed independently of the consumer access token.

New example script:

uv run python examples/bill-history.py \
  --username user@example.com --password secret

Bug Fix: TimeoutError now caught in OIDC helpers

asyncio.TimeoutError (Python 3.11+ builtin TimeoutError) is not a subclass of aiohttp.ClientError and could previously escape uncaught from the _get_auth_silent and _fetch helpers. Both now catch (aiohttp.ClientError, TimeoutError) and normalise to CannotConnectError.

Full Changelog: virtitnerd/py-nationalgrid@v0.6.2...v0.6.3

Commits
  • 027556c Add get_electric_bill_history and get_gas_bill_history via business portal si...
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [py-nationalgrid](https://github.com/virtitnerd/py-nationalgrid) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/virtitnerd/py-nationalgrid/releases)
- [Commits](virtitnerd/py-nationalgrid@v0.6.2...v0.6.3)

---
updated-dependencies:
- dependency-name: py-nationalgrid
  dependency-version: 0.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels May 22, 2026
@virtitnerd virtitnerd merged commit 9b301fc into main May 24, 2026
6 checks passed
@virtitnerd virtitnerd deleted the dependabot/pip/py-nationalgrid-0.6.3 branch May 24, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant