Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TomerFi/aioswitcher
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.3.0
Choose a base ref
...
head repository: TomerFi/aioswitcher
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Loading
Showing with 1,780 additions and 1,807 deletions.
  1. +0 −180 .all-contributorsrc
  2. +8 −1 .github/ISSUE_TEMPLATE/bug_report.yml
  3. +1 −1 .github/ISSUE_TEMPLATE/config.yml
  4. +1 −1 .github/auto-me-bot.yml
  5. +32 −0 .github/dependabot.yml
  6. +0 −16 .github/stale.yml
  7. +16 −11 .github/workflows/pages.yml
  8. +31 −28 .github/workflows/pr.yml
  9. +30 −30 .github/workflows/release.yml
  10. +22 −16 .github/workflows/stage.yml
  11. +21 −0 .github/workflows/stale.yml
  12. +0 −3 .vscode/settings.json
  13. +26 −24 CONTRIBUTING.md
  14. +0 −96 Makefile
  15. +26 −226 README.md
  16. +2 −0 docs/codedocs.md
  17. +10 −5 docs/index.md
  18. +0 −3 docs/install.md
  19. +400 −232 docs/scripts.md
  20. +36 −0 docs/supported.md
  21. +0 −187 docs/usage.md
  22. +143 −0 docs/usage_api.md
  23. +22 −0 docs/usage_bridge.md
  24. +42 −11 mkdocs.yml
  25. +51 −46 pyproject.toml
  26. +1 −1 requirements.txt
  27. +344 −128 scripts/control_device.py
  28. +9 −54 scripts/discover_devices.py
  29. +83 −348 src/aioswitcher/api/__init__.py
  30. +15 −0 src/aioswitcher/api/messages.py
  31. +16 −0 src/aioswitcher/api/packets.py
  32. +3 −14 src/aioswitcher/api/remotes.py
  33. +73 −28 src/aioswitcher/bridge.py
  34. +35 −0 src/aioswitcher/device/__init__.py
  35. +8 −36 src/aioswitcher/device/tools.py
  36. +2 −2 src/aioswitcher/schedule/tools.py
  37. +33 −7 tests/test_api_tcp_client.py
  38. +18 −12 tests/test_bridge.py
  39. +93 −7 tests/test_device_dataclasses.py
  40. +1 −0 tests/test_device_enum_helpers.py
  41. +9 −0 tests/test_device_parsing.py
  42. +72 −43 tests/test_device_tools.py
  43. +41 −8 tests/test_schedule_parser.py
  44. +2 −2 tests/test_schedule_tools.py
  45. +1 −0 tests/testresources/dummy_responses/set_set_shutter_child_response.txt
  46. +1 −0 tests/testresources/test_device_parsing/test_a_triple_light_datagram_produces_device.txt
180 changes: 0 additions & 180 deletions .all-contributorsrc

This file was deleted.

9 changes: 8 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ body:
attributes:
label: Module Version
description: What version of `aioswitcher` are you using?
placeholder: ex. 2.0.2
placeholder: ex. 5.1.1
validations:
required: true

@@ -39,6 +39,13 @@ body:
- Switcher Breeze
- Switcher Runner
- Switcher Runner Mini
- Switcher Runner S11
- Switcher Runner S12
- Switcher Light SL01
- Switcher Light SL01 Mini
- Switcher Light SL02
- Switcher Light SL02 Mini
- Switcher Light SL03
validations:
required: true

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@ blank_issues_enabled: false
contact_links:
- name: GitHub Discussions
url: https://github.com/TomerFi/aioswitcher/discussions/
about: You can also use Discussions for questions and ideas.
about: Use Discussions for questions and ideas.
2 changes: 1 addition & 1 deletion .github/auto-me-bot.yml
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@ pr:
conventionalTitle:
tasksList:
autoApprove:
users: ['dependabot', 'allcontributors']
users: ['dependabot']
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: /.github/workflows
schedule:
interval: weekly
labels:
- "type: dependencies"
commit-message:
prefix: "ci"
rebase-strategy: disabled
assignees:
- "tomerfi"
- "thecode"
- "YogevBokobza"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: daily
labels:
- "type: dependencies"
commit-message:
prefix: "build"
include: "scope"
rebase-strategy: disabled
versioning-strategy: increase-if-necessary
assignees:
- "tomerfi"
- "thecode"
- "YogevBokobza"
16 changes: 0 additions & 16 deletions .github/stale.yml

This file was deleted.

27 changes: 16 additions & 11 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -2,30 +2,34 @@
name: Pages Deploy

on:
workflow_dispatch:
release:
types: [published]

env:
MAIN_PY_VER: "3.13"

jobs:
deploy-pages:
runs-on: ubuntu-latest
environment: github-pages
name: Build documentation site and deploy to GH-Pages
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Setup Python 3.10
uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ env.MAIN_PY_VER }}

- name: Cache pip repository
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ env.MAIN_PY_VER }}

- name: Prepare python environment
run: |
@@ -34,18 +38,19 @@ jobs:
poetry config virtualenvs.in-project true
- name: Cache poetry virtual environment
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}-${{ env.MAIN_PY_VER }}

- name: Build documentation site
run: |
make install-docs-only-deps
make docs-build
poetry lock
poetry install --no-interaction
poetry run poe docs_build
- name: Deploy to GH-Pages
uses: peaceiris/actions-gh-pages@v3.9.3
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
Loading