Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork36.2k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Hey there@tuya,@zlinoliver, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this 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.
- Adds
local_strategyto diagnostic data collection - Updates test fixtures to support the new field
- Regenerates test snapshots to include
local_strategyentries
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| homeassistant/components/tuya/diagnostics.py | Addslocal_strategy field to the device diagnostic dictionary output |
| tests/components/tuya/conftest.py | Updates mock device creation to includelocal_strategy from fixture data |
| tests/components/tuya/snapshots/test_diagnostics.ambr | Updates all diagnostic snapshots to reflect the newlocal_strategy field (set toNone in fixtures) |
c50f4d6 intodevUh oh!
There was an error while loading.Please reload this page.
Proposed change
local_strategycontains useful information about dpId <-> dpCode mappingsType of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: