-
-
Notifications
You must be signed in to change notification settings - Fork 35.8k
Add Tuya debug logging for new devices #150091
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
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 debug logging for Tuya device discovery to help with troubleshooting and matching device status with type definitions. The change improves observability by logging device information during both initial setup and new device discovery.
Key Changes
- Added debug logging for devices during initial setup from the device map
- Added debug logging for new devices discovered at runtime
- Both log entries include device ID, status, function, and status range information
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Thanks, @epenet 👍
../Frenck
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Proposed change
SSIA, I spotted this whilst looking at log from #150077
We currently log the updates, but we don't log the initial discovery so we are unable to match the status with the corresponding type definitions.
Type 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: