-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support ion and keypadlock control. #21
Conversation
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.
Thank you for your contribution, sorry didn't see this PR in the first place.
JciHitachi/model.py
Outdated
"is_numeric": False, | ||
"legacy_name": None, | ||
"id2str": {}, | ||
"legacy_name": "ion", |
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.
We don't add "new" legacy names anymore. They exist only for BC reasons that I have been lazy to resolve. Let's just use its regular name Ion
(and please modify the PR in JciHitachiHA accordingly).
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.
You're adding a legacy name ion
to it, and we don't do that anymore because it is "legacy".
Simply set legacy_name
to None
and use its regular name Ion
instead. You can look at the Defrost
below as an example.
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 your response, i modify and push.
JciHitachi/model.py
Outdated
@@ -1845,8 +1845,11 @@ def __init__(self, status, default=0): | |||
"KeypadLock": { | |||
"controllable": True, | |||
"is_numeric": False, | |||
"legacy_name": None, | |||
"id2str": {}, | |||
"legacy_name": "keypad_lock", |
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.
ditto
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #21 +/- ##
==========================================
- Coverage 92.64% 87.45% -5.20%
==========================================
Files 8 8
Lines 789 789
==========================================
- Hits 731 690 -41
- Misses 58 99 +41 ☔ View full report in Codecov by Sentry. |
Let me know if you run into any issue. |
Sorry, I don't understand what you mean, so I don't know what to modify. |
購買了 RD-200HH1,也試圖使用API 控制該兩項功能,且都能運作。