-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Add Tuya snapshots tests for button and vacuum platform #149968
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 comprehensive snapshot tests for the Tuya vacuum platform, addressing issues #141278 and #144362. The tests verify platform setup, device discovery, and the return-to-base functionality.
Key Changes:
- Adds vacuum platform snapshot tests for device discovery and state validation
- Includes specific test for return-to-base service functionality
- Adds test fixture for vacuum device with comprehensive device capabilities
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
tests/components/tuya/test_vacuum.py | New test file with snapshot tests for vacuum platform setup, discovery, and return-to-base service |
tests/components/tuya/snapshots/test_vacuum.ambr | Snapshot file containing expected entity registry and state data for vacuum device |
tests/components/tuya/fixtures/sd_lr33znaodtyarrrz.json | Test fixture defining a Tuya vacuum device with complete function and status definitions |
tests/components/tuya/init.py | Updates DEVICE_MOCKS to include the vacuum device for platform testing |
d2983c5
to
d8d8c33
Compare
Proposed change
SSIA, from #141278 and #144362
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: