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.6
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.7
Choose a head ref
  • 13 commits
  • 37 files changed
  • 2 contributors

Commits on Oct 31, 2024

  1. Expose PIR enabled setting for iot dimmers (#1174)

    This adds PIR enabled feature to iot dimmers, making it possible to
    enable and disable the motion detection.
    rytilahti authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    9975bbf View commit details
    Browse the repository at this point in the history
  2. Expose ambient light setting for iot dimmers (#1210)

    This PR adds a setting to control the ambient light enabled/disabled.
    
    Also fixes the getters.
    rytilahti authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    6c141c3 View commit details
    Browse the repository at this point in the history
  3. Use stacklevel=2 for warnings to report on callsites (#1219)

    Use stacklevel=2 for warnings, as this will correctly show the callsite
    instead of the line where the warning is reported.
    
    Currently:
    ```
    kasa/__init__.py:110
      /home/tpr/code/python-kasa/kasa/__init__.py:110: DeprecationWarning: SmartDevice is deprecated, use IotDevice from package kasa.iot instead or use Discover.discover_single() and Device.connect() to support new protocols
        warn(
    ```
    
    After:
    ```
    kasa/tests/smart/modules/test_contact.py:3
      /home/tpr/code/python-kasa/kasa/tests/smart/modules/test_contact.py:3: DeprecationWarning: SmartDevice is deprecated, use IotDevice from package kasa.iot instead or use Discover.discover_single() and Device.connect() to support new protocols
        from kasa import Module, SmartDevice
    
    ``` 
    
    Currently:
    ```
    kasa/tests/test_lightstrip.py: 56 warnings
      /home/tpr/code/python-kasa/kasa/device.py:559: DeprecationWarning: effect is deprecated, use: Module.LightEffect in device.modules instead
        warn(msg, DeprecationWarning, stacklevel=1)
    ```
    
    After:
    ```
    kasa/tests/test_lightstrip.py::test_effects_lightstrip_set_effect_transition[500-KL430(US)_2.0_1.0.9.json]
      /home/tpr/code/python-kasa/kasa/tests/test_lightstrip.py:62: DeprecationWarning: set_effect is deprecated, use: Module.LightEffect in device.modules instead
        await dev.set_effect("Candy Cane")
    ```
    rytilahti authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    5da41fc View commit details
    Browse the repository at this point in the history
  4. Fix AES child device creation error (#1220)

    Bug exposed when passing credentials_hash and creating child devices for
    klap devices as the default is to try to create an AES transport and the
    credentials hashes are incompatible.
    sdb9696 authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    e73da5b View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Configuration menu
    Copy the full SHA
    54f0e91 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7335a7d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8969b54 View commit details
    Browse the repository at this point in the history
  4. Initial trigger logs implementation (#900)

    Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
    rytilahti and sdb9696 authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    70c96b5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    77b654a View commit details
    Browse the repository at this point in the history
  6. Add childprotection module (#1141)

    When turned on, rotating the thermostat will not change the target
    temperature.
    rytilahti authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    0360107 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2024

  1. Add PIR&LAS for wall switches mentioning PIR support (#1227)

    Some devices (like KS200M) support ambient and motion, but as they are
    detected as wall switches, they don't get the modules added.
    This PR enables the respective modules for wall switches when the
    `dev_name` contains `PIR`.
    rytilahti authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    b2f3971 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. parse_pcap_klap: various code cleanups (#1138)

    Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
    rytilahti and sdb9696 authored Nov 4, 2024
    Configuration menu
    Copy the full SHA
    4640dfa View commit details
    Browse the repository at this point in the history
  2. Prepare 0.7.7 (#1229)

    ## [0.7.7](https://github.com/python-kasa/python-kasa/tree/0.7.7) (2024-11-04)
    
    [Full Changelog](0.7.6...0.7.7)
    
    **Release summary:**
    
    - Bugfix for child device device creation error with credentials_hash
    - PIR support for iot dimmers and wall switches.
    - Various small enhancements and project improvements.
    
    **Implemented enhancements:**
    
    - Add PIR&LAS for wall switches mentioning PIR support [\#1227](#1227) (@rytilahti)
    - Expose ambient light setting for iot dimmers [\#1210](#1210) (@rytilahti)
    - Expose PIR enabled setting for iot dimmers [\#1174](#1174) (@rytilahti)
    - Add childprotection module [\#1141](#1141) (@rytilahti)
    - Initial trigger logs implementation [\#900](#900) (@rytilahti)
    
    **Fixed bugs:**
    
    - Fix AES child device creation error [\#1220](#1220) (@sdb9696)
    
    **Project maintenance:**
    
    - Update TC65 fixture [\#1225](#1225) (@rytilahti)
    - Update smartcamera fixtures from latest dump\_devinfo [\#1224](#1224) (@sdb9696)
    - Add component queries to smartcamera devices [\#1223](#1223) (@sdb9696)
    - Update try\_connect\_all to be more efficient and report attempts [\#1222](#1222) (@sdb9696)
    - Use stacklevel=2 for warnings to report on callsites [\#1219](#1219) (@rytilahti)
    - parse\_pcap\_klap: various code cleanups [\#1138](#1138) (@rytilahti)
    sdb9696 authored Nov 4, 2024
    Configuration menu
    Copy the full SHA
    331baf6 View commit details
    Browse the repository at this point in the history
Loading