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

Handle special swing #492

Merged
merged 15 commits into from
Jul 26, 2022
Merged

Conversation

jafar-atili
Copy link
Contributor

@jafar-atili jafar-atili commented May 31, 2022

Pull Request

First PR? don't hesitate, push it.

Description

Describe what you did and why.

Related issue (if any): fixes #issue_number_goes_here

Checklist

  • I have followed this repository's contributing guidelines.
  • I have used the conventional commits specification for my commit messages.
  • I have signed my commits.
  • I will adhere to the project's code of conduct.

Additional information

Anything else?

@pull-request-size pull-request-size bot added the size: m Pull request has 30 to 100 lines label May 31, 2022
@trafico-bot trafico-bot bot added the status: needs review Pull request needs a review label May 31, 2022
@jafar-atili
Copy link
Contributor Author

jafar-atili commented May 31, 2022

Few comments about this PR:

  1. It doesn't have to make it to the next release, it only means that the following AC remotes won't have vertical swing feature: ["ELEC7022", "ZM079055", "ZM079065", "ZM079049", "ZM079065"]

  2. even with this PR there's a problem, the following remote types ["ELEC7022","ZM079055","ZM079065"] have the same code, hence, their swing control is toggle which means that control_device.py -s on -w on can toggle the swing back to off.

  3. Switcher have a problem reading the UDP/TCP swing state of ACs from item 1, they will always report that the swing is STOPped even if its working, so the this another problem that can make the UI swing state be out of sync with the actual swing state.

My 2 cents,
Jafar.

@thecode thecode marked this pull request as draft May 31, 2022 19:28
scripts/control_device.py Outdated Show resolved Hide resolved
scripts/control_device.py Outdated Show resolved Hide resolved
scripts/control_device.py Outdated Show resolved Hide resolved
scripts/control_device.py Outdated Show resolved Hide resolved
scripts/control_device.py Outdated Show resolved Hide resolved
scripts/control_device.py Outdated Show resolved Hide resolved
src/aioswitcher/api/__init__.py Outdated Show resolved Hide resolved
src/aioswitcher/api/__init__.py Show resolved Hide resolved
@trafico-bot trafico-bot bot added status: changes requested Pull request changes requested and removed status: needs review Pull request needs a review labels Jun 15, 2022
@TomerFi
Copy link
Owner

TomerFi commented Jun 29, 2022

This needs rebasing.

@pull-request-size pull-request-size bot removed the size: m Pull request has 30 to 100 lines label Jul 25, 2022
@trafico-bot trafico-bot bot added the status: needs review Pull request needs a review label Jul 25, 2022
@pull-request-size pull-request-size bot added the size: xxl Pull request has more then 1000 lines label Jul 25, 2022
@trafico-bot trafico-bot bot removed the status: changes requested Pull request changes requested label Jul 25, 2022
@jafar-atili
Copy link
Contributor Author

@TomerFi, your Git abilities is required here, I tried to rebase on the local repo, now it doesn't like some commit messages

@pull-request-size pull-request-size bot added size: m Pull request has 30 to 100 lines and removed size: xxl Pull request has more then 1000 lines labels Jul 26, 2022
@jafar-atili jafar-atili marked this pull request as ready for review July 26, 2022 09:42
@TomerFi
Copy link
Owner

TomerFi commented Jul 26, 2022

@jafar-atili
I'm working on this - will be done soon.

jafar-atili and others added 10 commits July 26, 2022 21:08
BREAKING CHANGE: SwitcherBridge broadcast ports changed to list

Signed-off-by: thecode <[email protected]>
Signed-off-by: thecode <[email protected]>

chore: revert black

Signed-off-by: thecode <[email protected]>
Signed-off-by: Jafar Atili <[email protected]>
Signed-off-by: Jafar Atili <[email protected]>
Signed-off-by: Jafar Atili <[email protected]>
…ch was also cleaned from unused data) for testing the same scenario

Signed-off-by: Jafar Atili <[email protected]>
@pull-request-size pull-request-size bot added size: l Pull request has 100 to 500 lines and removed size: m Pull request has 30 to 100 lines labels Jul 26, 2022
@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

❗ No coverage uploaded for pull request base (release/v3@5042e53). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             release/v3     #492   +/-   ##
=============================================
  Coverage              ?   99.14%           
=============================================
  Files                 ?       10           
  Lines                 ?     1054           
  Branches              ?        0           
=============================================
  Hits                  ?     1045           
  Misses                ?        9           
  Partials              ?        0           

Signed-off-by: Tomer Figenblat <[email protected]>
@pull-request-size pull-request-size bot added size: m Pull request has 30 to 100 lines and removed size: l Pull request has 100 to 500 lines labels Jul 26, 2022
@trafico-bot trafico-bot bot added status: approved Pull request is approved and removed status: needs review Pull request needs a review labels Jul 26, 2022
@TomerFi TomerFi merged commit d36e5ec into TomerFi:release/v3 Jul 26, 2022
@trafico-bot trafico-bot bot added status: merged Pull request merged and removed status: approved Pull request is approved labels Jul 26, 2022
TomerFi added a commit that referenced this pull request Jul 26, 2022
* fix: fixed swing mode control on special remotes

Signed-off-by: Jafar Atili <[email protected]>

* fix: fixed issues to handle special swing mode

Signed-off-by: Jafar Atili <[email protected]>

* feat: add switcher protocol type

BREAKING CHANGE: SwitcherBridge broadcast ports changed to list

Signed-off-by: thecode <[email protected]>

* feat: build protocol type help dynamically

Signed-off-by: thecode <[email protected]>

chore: revert black

Signed-off-by: thecode <[email protected]>

* test: added breeze tests

Signed-off-by: Jafar Atili <[email protected]>

* test: completed tests to 98% coverage

Signed-off-by: Jafar Atili <[email protected]>

* test: fixed formatting

Signed-off-by: Jafar Atili <[email protected]>

* test: renamed txt to json

Signed-off-by: Jafar Atili <[email protected]>

* fix: removed ELEC7022_NO_DRY.json and used ELEC7022_INVALID.json (which was also cleaned from unused data) for testing the same scenario

Signed-off-by: Jafar Atili <[email protected]>

* feat: added option to cache IRSet files

Signed-off-by: Jafar Atili <[email protected]>

* style: fixed imports with isort

Signed-off-by: Jafar Atili <[email protected]>

* docs: added misspelled words to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* docs: added missing new line to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* fix: improved the code and fixed PR comments

Signed-off-by: Jafar Atili <[email protected]>

* chore: remove unused wordlist file

Signed-off-by: Tomer Figenblat <[email protected]>

Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Jul 26, 2022
* fix: fixed swing mode control on special remotes

Signed-off-by: Jafar Atili <[email protected]>

* fix: fixed issues to handle special swing mode

Signed-off-by: Jafar Atili <[email protected]>

* feat: add switcher protocol type

BREAKING CHANGE: SwitcherBridge broadcast ports changed to list

Signed-off-by: thecode <[email protected]>

* feat: build protocol type help dynamically

Signed-off-by: thecode <[email protected]>

chore: revert black

Signed-off-by: thecode <[email protected]>

* test: added breeze tests

Signed-off-by: Jafar Atili <[email protected]>

* test: completed tests to 98% coverage

Signed-off-by: Jafar Atili <[email protected]>

* test: fixed formatting

Signed-off-by: Jafar Atili <[email protected]>

* test: renamed txt to json

Signed-off-by: Jafar Atili <[email protected]>

* fix: removed ELEC7022_NO_DRY.json and used ELEC7022_INVALID.json (which was also cleaned from unused data) for testing the same scenario

Signed-off-by: Jafar Atili <[email protected]>

* feat: added option to cache IRSet files

Signed-off-by: Jafar Atili <[email protected]>

* style: fixed imports with isort

Signed-off-by: Jafar Atili <[email protected]>

* docs: added misspelled words to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* docs: added missing new line to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* fix: improved the code and fixed PR comments

Signed-off-by: Jafar Atili <[email protected]>

* chore: remove unused wordlist file

Signed-off-by: Tomer Figenblat <[email protected]>

Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Jul 26, 2022
* fix: fixed swing mode control on special remotes

Signed-off-by: Jafar Atili <[email protected]>

* fix: fixed issues to handle special swing mode

Signed-off-by: Jafar Atili <[email protected]>

* feat: add switcher protocol type

BREAKING CHANGE: SwitcherBridge broadcast ports changed to list

Signed-off-by: thecode <[email protected]>

* feat: build protocol type help dynamically

Signed-off-by: thecode <[email protected]>

chore: revert black

Signed-off-by: thecode <[email protected]>

* test: added breeze tests

Signed-off-by: Jafar Atili <[email protected]>

* test: completed tests to 98% coverage

Signed-off-by: Jafar Atili <[email protected]>

* test: fixed formatting

Signed-off-by: Jafar Atili <[email protected]>

* test: renamed txt to json

Signed-off-by: Jafar Atili <[email protected]>

* fix: removed ELEC7022_NO_DRY.json and used ELEC7022_INVALID.json (which was also cleaned from unused data) for testing the same scenario

Signed-off-by: Jafar Atili <[email protected]>

* feat: added option to cache IRSet files

Signed-off-by: Jafar Atili <[email protected]>

* style: fixed imports with isort

Signed-off-by: Jafar Atili <[email protected]>

* docs: added misspelled words to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* docs: added missing new line to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* fix: improved the code and fixed PR comments

Signed-off-by: Jafar Atili <[email protected]>

* chore: remove unused wordlist file

Signed-off-by: Tomer Figenblat <[email protected]>

Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
* fix: fixed swing mode control on special remotes

Signed-off-by: Jafar Atili <[email protected]>

* fix: fixed issues to handle special swing mode

Signed-off-by: Jafar Atili <[email protected]>

* feat: add switcher protocol type

BREAKING CHANGE: SwitcherBridge broadcast ports changed to list

Signed-off-by: thecode <[email protected]>

* feat: build protocol type help dynamically

Signed-off-by: thecode <[email protected]>

chore: revert black

Signed-off-by: thecode <[email protected]>

* test: added breeze tests

Signed-off-by: Jafar Atili <[email protected]>

* test: completed tests to 98% coverage

Signed-off-by: Jafar Atili <[email protected]>

* test: fixed formatting

Signed-off-by: Jafar Atili <[email protected]>

* test: renamed txt to json

Signed-off-by: Jafar Atili <[email protected]>

* fix: removed ELEC7022_NO_DRY.json and used ELEC7022_INVALID.json (which was also cleaned from unused data) for testing the same scenario

Signed-off-by: Jafar Atili <[email protected]>

* feat: added option to cache IRSet files

Signed-off-by: Jafar Atili <[email protected]>

* style: fixed imports with isort

Signed-off-by: Jafar Atili <[email protected]>

* docs: added misspelled words to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* docs: added missing new line to spelling_wordlist.txt

Signed-off-by: Jafar Atili <[email protected]>

* fix: improved the code and fixed PR comments

Signed-off-by: Jafar Atili <[email protected]>

* chore: remove unused wordlist file

Signed-off-by: Tomer Figenblat <[email protected]>

Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: Jafar Atili <[email protected]>
Signed-off-by: thecode <[email protected]>
Signed-off-by: Tomer Figenblat <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: Jafar Atili <[email protected]>
Signed-off-by: thecode <[email protected]>
Signed-off-by: Tomer Figenblat <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: Jafar Atili <[email protected]>

Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: Jafar Atili <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: Jafar Atili <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: Jafar Atili <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: jafar-atili <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: jafar-atili <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
TomerFi added a commit that referenced this pull request Sep 13, 2022
Signed-off-by: jafar-atili <[email protected]>
Co-authored-by: thecode <[email protected]>
Co-authored-by: Tomer Figenblat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request has 30 to 100 lines status: merged Pull request merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants