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: python-kasa/python-kasa
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.7.3
Choose a base ref
...
head repository: python-kasa/python-kasa
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.7.4
Choose a head ref
  • 15 commits
  • 25 files changed
  • 3 contributors

Commits on Sep 21, 2024

  1. Add reboot() to the device interface (#1124)

    Both device families have already had a method following this signature,
    but defining the interface in the base class will make the contract
    clear.
    rytilahti authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    f07341a View commit details
    Browse the repository at this point in the history
  2. Add factory-reset command to cli (#1108)

    Allow reseting devices to factory settings using the cli: `kasa device factory-reset`.
    rytilahti authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    b7fa0d2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    73b6d16 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    89d611d View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Configuration menu
    Copy the full SHA
    69c2700 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Mock asyncio.sleep for klapprotocol tests (#1130)

    Speeds up tests in `test_klapprotocol.py` from 26s to 2s when there's no
    sleep between the retries.
    rytilahti authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    8321fd0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ab08f4 View commit details
    Browse the repository at this point in the history
  3. Speed up and simplify github workflows (#1128)

    - Enable parallel tests in the CI with pytest-xdist
    - Migrate to the official `astral-sh/setup-uv` github action
    - Call `pre-commit` run as a single job in CI instead of relisting each
    check
    - Use `uv` version 0.4.16
    - Fix bug with pre-commit cache
    - Update `publish.yml` to use  `astral-sh/setup-uv`
    sdb9696 authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    038b699 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    db686e1 View commit details
    Browse the repository at this point in the history
  5. Enable ruff lint pycodestyle warnings (#1132)

    Addresses repeated SyntaxWarnings when running linters:
    ```
    kasa/tests/test_bulb.py:254: SyntaxWarning: invalid escape sequence '\d'
      ValueError, match="Temperature should be between \d+ and \d+, was 1000"
    kasa/tests/test_bulb.py:258: SyntaxWarning: invalid escape sequence '\d'
      ValueError, match="Temperature should be between \d+ and \d+, was 10000"
    kasa/tests/test_common_modules.py:216: SyntaxWarning: invalid escape sequence '\d'
      with pytest.raises(ValueError, match="Temperature should be between \d+ and \d+"):
    kasa/tests/test_common_modules.py:219: SyntaxWarning: invalid escape sequence '\d'
      with pytest.raises(ValueError, match="Temperature should be between \d+ and \d+"):
    ```
    sdb9696 authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    936e45c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b4aba36 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5d78f00 View commit details
    Browse the repository at this point in the history
  8. Fix cli command for device off (#1121)

    Was previously missed when using the full `kasa device off` command as
    opposed to the shortcut.
    sdb9696 authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    d1b43f5 View commit details
    Browse the repository at this point in the history
  9. Add factory_reset() to iotdevice (#1125)

    Also extend the base device class API to make factory_reset() part of the common API.
    rytilahti authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1ce5af2 View commit details
    Browse the repository at this point in the history
  10. Prepare 0.7.4 (#1135)

    ## [0.7.4](https://github.com/python-kasa/python-kasa/tree/0.7.4) (2024-09-27)
    
    [Full Changelog](0.7.3...0.7.4)
    
    **Release summary:**
    
    - KL135 color temp range corrected to 9000k max
    - Minor enhancements and project maintenance
    
    **Implemented enhancements:**
    
    - Add factory\_reset\(\) to iotdevice [\#1125](#1125) (@rytilahti)
    - Add reboot\(\) to the device interface [\#1124](#1124) (@rytilahti)
    - Add factory-reset command to cli [\#1108](#1108) (@rytilahti)
    
    **Fixed bugs:**
    
    - Extend KL135 ct range up to 9000K [\#1123](#1123) (@rytilahti)
    - Fix cli command for device off [\#1121](#1121) (@sdb9696)
    
    **Project maintenance:**
    
    - Use pytest-socket to ensure no tests are performing io [\#1133](#1133) (@sdb9696)
    - Enable ruff lint pycodestyle warnings [\#1132](#1132) (@sdb9696)
    - Add autouse fixture to patch asyncio.sleep [\#1131](#1131) (@sdb9696)
    - Mock asyncio.sleep for klapprotocol tests [\#1130](#1130) (@rytilahti)
    - Add fixture for T110 fw 1.9.0 [\#1129](#1129) (@rytilahti)
    - Speed up and simplify github workflows [\#1128](#1128) (@sdb9696)
    - Add KS200M\(US\) fw 1.0.12 fixture [\#1127](#1127) (@GatorEG)
    - Add stale PR/Issue github workflow [\#1126](#1126) (@sdb9696)
    - Add fixture for KL135\(US\) fw 1.0.15 [\#1122](#1122) (@rytilahti)
    sdb9696 authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    2922c3f View commit details
    Browse the repository at this point in the history
Loading