-
Notifications
You must be signed in to change notification settings - Fork 740
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 PM2.5 for Tuya Smart Air House keeper #2837
Conversation
modified: zhaquirks/tuya/air/ts0601_air_quality.py new file: zhaquirks/tuya/air/ts0601_smart_air.py
modified: zhaquirks/tuya/air/ts0601_air_quality.py new file: zhaquirks/tuya/air/ts0601_smart_air.py modified: tests/test_tuya_air.py
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2837 +/- ##
==========================================
+ Coverage 87.37% 87.39% +0.01%
==========================================
Files 287 288 +1
Lines 8848 8860 +12
==========================================
+ Hits 7731 7743 +12
Misses 1117 1117 ☔ View full report in Codecov by Sentry. |
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.
LGTM. Big thanks for also adding tests!
replacement = { | ||
ENDPOINTS: { | ||
1: { | ||
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT, |
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.
Noticed ON_OFF_LIGHT
as a type when reviewing. The previous/other Tuya "air-related" quirks also use this, so I guess it's fine/there's a reason, but we might wanna take a look at this in the future again.
Proposed change
Add capability to read PM25 values from Tuya Smart House keeper devices and split device into separate quirk.
This is my first pull request ever and also a first attempt at python so any guidance is appreciated.
Additional information
also synced the supported models with those supported by Zigbee2MQTT
Checklist
pre-commit
checks pass / the code has been formatted using Black