-
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 mode
attribute to Aqara T1 relay
#2823
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2823 +/- ##
=======================================
Coverage 87.35% 87.35%
=======================================
Files 287 287
Lines 8835 8835
=======================================
Hits 7718 7718
Misses 1117 1117 ☔ View full report in Codecov by Sentry. |
This It might make sense to change zha-device-handlers/zhaquirks/xiaomi/aqara/opple_switch.py Lines 63 to 106 in 5291121
Maybe that implementation/enum can be used/shared if it's the same for this T1 relay. |
Also, regarding "auto-setting" Although
zha-device-handlers/zhaquirks/xiaomi/aqara/opple_remote.py Lines 149 to 153 in aeca76d
If that request errors out (when changing from |
I debated doing this initially... the quirks work for multiple models and multiple fw differences... I didn't want to add this without more information. The goal was just to get the attribute there so we can set it from the UI and collect more info from users. thoughts? |
Yeah, let's not set it automatically for now then. I can't recall seeing any issues regarding this, so maybe everyone just uses a new firmware version on these. |
mode
attribute to Aqara T1 relay
Proposed change
Add the mode attribute to the aqara T1 relay
TODO:
Additional information
Checklist
pre-commit
checks pass / the code has been formatted using Black