Skip to content
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

Merged
merged 5 commits into from
Jul 22, 2024
Merged

Support ion and keypadlock control. #21

merged 5 commits into from
Jul 22, 2024

Conversation

LW-Ho
Copy link
Contributor

@LW-Ho LW-Ho commented Jul 17, 2024

購買了 RD-200HH1,也試圖使用API 控制該兩項功能,且都能運作。

Copy link
Owner

@qqaatw qqaatw left a 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.

"is_numeric": False,
"legacy_name": None,
"id2str": {},
"legacy_name": "ion",
Copy link
Owner

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).

Copy link
Owner

@qqaatw qqaatw Jul 22, 2024

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.

Copy link
Contributor Author

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.

@@ -1845,8 +1845,11 @@ def __init__(self, status, default=0):
"KeypadLock": {
"controllable": True,
"is_numeric": False,
"legacy_name": None,
"id2str": {},
"legacy_name": "keypad_lock",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.45%. Comparing base (3b48880) to head (4324f84).
Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@qqaatw
Copy link
Owner

qqaatw commented Jul 21, 2024

Let me know if you run into any issue.

@LW-Ho
Copy link
Contributor Author

LW-Ho commented Jul 22, 2024

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.

@qqaatw qqaatw merged commit 341c888 into qqaatw:master Jul 22, 2024
8 of 9 checks passed
@LW-Ho LW-Ho deleted the feature/add-more-function branch July 22, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants