Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Tuya local_strategy to Tuya diagnostic#158450

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
joostlek merged 1 commit intodevfromepenet-20251209-1419
Dec 9, 2025
Merged

Conversation

@epenet
Copy link
Contributor

Proposed change

local_strategy contains useful information about dpId <-> dpCode mappings

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:
  • Link to developer documentation pull request:
  • Link to frontend pull request:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • 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 thedevelopment checklist
  • I have followed theperfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

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

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

  • Themanifest 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 torequirements_all.txt.
    Updated by runningpython3 -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:

CopilotAI review requested due to automatic review settingsDecember 9, 2025 13:22
@home-assistant
Copy link

Hey there@tuya,@zlinoliver, mind taking a look at this pull request as it has been labeled with an integration (tuya) you are listed as acode owner for? Thanks!

Code owner commands

Code owners oftuya 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 tuya 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.

Copy link
Contributor

CopilotAI 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 adds thelocal_strategy field from Tuya devices to the diagnostic output. This field contains useful dpId to dpCode mapping information that helps with debugging Tuya device integration issues.

  • Addslocal_strategy to diagnostic data collection
  • Updates test fixtures to support the new field
  • Regenerates test snapshots to includelocal_strategy entries

Reviewed changes

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

FileDescription
homeassistant/components/tuya/diagnostics.pyAddslocal_strategy field to the device diagnostic dictionary output
tests/components/tuya/conftest.pyUpdates mock device creation to includelocal_strategy from fixture data
tests/components/tuya/snapshots/test_diagnostics.ambrUpdates all diagnostic snapshots to reflect the newlocal_strategy field (set toNone in fixtures)

@joostlekjoostlek merged commitc50f4d6 intodevDec 9, 2025
41 of 42 checks passed
@joostlekjoostlek deleted the epenet-20251209-1419 branchDecember 9, 2025 16:29
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 10, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

Copilot code reviewCopilotCopilot left review comments

@joostlekjoostlekjoostlek approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2025.12.3

Development

Successfully merging this pull request may close these issues.

4 participants

@epenet@joostlek@frenck

[8]ページ先頭

©2009-2025 Movatter.jp