Skip to content
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

Add config to ZHA to allow disabling polling of mains powered devices when the network is started #125473

Merged

Conversation

dmulcahey
Copy link
Contributor

Proposed change

This PR exposes a new config option in ZHA that allows users to disable polling mains powered devices for new state when the Zigbee network is started.

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

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

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:

@home-assistant
Copy link

home-assistant bot commented Sep 7, 2024

Hey there @Adminiuga, @puddly, @TheJulianJES, mind taking a look at this pull request as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign zha Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

@dmulcahey dmulcahey force-pushed the dm/zha-enable-mains-startup-polling branch from e2f3cbb to 8e09dfb Compare September 20, 2024 12:20
@dmulcahey dmulcahey marked this pull request as ready for review September 20, 2024 12:32
@frenck frenck merged commit e81a1f7 into home-assistant:dev Sep 23, 2024
30 checks passed
@Foxhgf
Copy link

Foxhgf commented Sep 24, 2024

{
"_links": {
"self": {
"href": "https://api.testnet.minepi.com/transactions/1d1f75fd0cf9eb4d2190d0b701ee2d15fb23f6e12763e5a7f0a241a1aaa36026"
},
"account": {
"href": "https://api.testnet.minepi.com/accounts/GD7QTGJVFDMI5KCVKLBYQYTJSMJPDZBHTSSHO3SDGYI6XJZLT5ET3GRB"
},
"ledger": {
"href": "https://api.testnet.minepi.com/ledgers/16893904"
},
"operations": {
"href": "https://api.testnet.minepi.com/transactions/1d1f75fd0cf9eb4d2190d0b701ee2d15fb23f6e12763e5a7f0a241a1aaa36026/operations{?cursor,limit,order}",
"templated": true
},
"effects": {
"href": "https://api.testnet.minepi.com/transactions/1d1f75fd0cf9eb4d2190d0b701ee2d15fb23f6e12763e5a7f0a241a1aaa36026/effects{?cursor,limit,order}",
"templated": true
},
"precedes": {
"href": "https://api.testnet.minepi.com/transactions?order=asc\u0026cursor=72558765181857792"
},
"succeeds": {
"href": "https://api.testnet.minepi.com/transactions?order=desc\u0026cursor=72558765181857792"
},
"transaction": {
"href": "https://api.testnet.minepi.com/transactions/1d1f75fd0cf9eb4d2190d0b701ee2d15fb23f6e12763e5a7f0a241a1aaa36026"
}
},
"id": "1d1f75fd0cf9eb4d2190d0b701ee2d15fb23f6e12763e5a7f0a241a1aaa36026",
"paging_token": "72558765181857792",
"successful": true,
"hash": "1d1f75fd0cf9eb4d2190d0b701ee2d15fb23f6e12763e5a7f0a241a1aaa36026",
"ledger": 16893904,
"created_at": "2024-08-25T06:41:38Z",
"source_account": "GD7QTGJVFDMI5KCVKLBYQYTJSMJPDZBHTSSHO3SDGYI6XJZLT5ET3GRB",
"source_account_sequence": "26888329223999325",
"fee_account": "GD7QTGJVFDMI5KCVKLBYQYTJSMJPDZBHTSSHO3SDGYI6XJZLT5ET3GRB",
"fee_charged": "100000",
"max_fee": "100000",
"operation_count": 1,
"envelope_xdr": "AAAAAgAAAAD/CZk1KNiOqFVSw4hiaZMS8eQnnKR3bkM2EeunK59JPQABhqAAX4bLAAAPXQAAAAEAAAAAAAAAAAAAAABmytLLAAAAAAAAAAEAAAAAAAAAAQAAAAD/CZk1KNiOqFVSw4hiaZMS8eQnnKR3bkM2EeunK59JPQAAAAAAAAAAAJiWgAAAAAAAAAABK59JPQAAAEDzOm/Pvzy30aIllieVi8a2Dql+CuTGyzvWTNC9OLeSOllTuBe8Ouc56YTiecHZwGA3EGpkDioALbSKgsCMLbsM",
"result_xdr": "AAAAAAABhqAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
"result_meta_xdr": "AAAAAgAAAAIAAAADAQHH0AAAAAAAAAAA/wmZNSjYjqhVUsOIYmmTEvHkJ5ykd25DNhHrpyufST0AAAAAP+ReXABfhssAAA9cAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAQHH0AAAAAAAAAAA/wmZNSjYjqhVUsOIYmmTEvHkJ5ykd25DNhHrpyufST0AAAAAP+ReXABfhssAAA9dAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA=",
"fee_meta_xdr": "AAAAAgAAAAMBAcfEAAAAAAAAAAD/CZk1KNiOqFVSw4hiaZMS8eQnnKR3bkM2EeunK59JPQAAAAA/5eT8AF+GywAAD1wAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEBAcfQAAAAAAAAAAD/CZk1KNiOqFVSw4hiaZMS8eQnnKR3bkM2EeunK59JPQAAAAA/5F5cAF+GywAAD1wAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
"memo_type": "none",
"signatures": [
"8zpvz788t9GiJZYnlYvGtg6pfgrkxss71kzQvTi3kjpZU7gXvDrnOemE4nnB2cBgNxBqZA4qAC20ioLAjC27DA=="
],
"valid_after": "1970-01-01T00:00:00Z",
"valid_before": "2024-08-25T06:44:27Z"

@Foxhgf
Copy link

Foxhgf commented Sep 24, 2024

@Foxhgf @Foxhgf

5764baa99ca5abb2cbc48ddde9dbb098ba5723e6

@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2024
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.

6 participants