8000 Comparing 0.4.1...0.4.2 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

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.4.1
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.4.2
Choose a head ref
  • 13 commits
  • 20 files changed
  • 4 contributors

Commits on Jan 14, 2022

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

Commits on Jan 29, 2022

  1. Configuration menu
    Copy the full SHA
    6a31de5 View commit details
    Browse the repository at this point in the history
  2. Added a fixture file for KS220M (#273)

    * Added motion and light sensor for KS220M
    
    * Added fixture file for ks220m
    
    * Remove dump_devinfo and add the extra queries to devtools/dump_devinfo
    
    * Test KS220M as a dimmer
    
    * Add empty modules to baseproto to make the tests pass
    
    Co-authored-by: mrbetta <bettale@gmail.com>
    Co-authored-by: Teemu Rytilahti <tpr@iki.fi>
    3 people authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    5bf6fda View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2022

  1. Fix unsafe __del__ in TPLinkSmartHomeProtocol (#300)

    * Fix unsafe __del__ in TPLinkSmartHomeProtocol
    
    Fixes
    ```
    Exception ignored in: <function TPLinkSmartHomeProtocol.__del__ at 0x1096d0670>
    Traceback (most recent call last):
      File "/Users/bdraco/home-assistant/venv/lib/python3.9/site-packages/kasa/protocol.py", line 159, in __del__
        self.writer.close()
      File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/streams.py", line 353, in close
        return self._transport.close()
      File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/selector_events.py", line 700, in close
        self._loop.call_soon(self._call_connection_lost, None)
      File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 748, in call_soon
        self._check_thread()
      File "/opt/homebrew/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 785, in _check_thread
        raise RuntimeError(
    RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one
    ```
    
    * comment
    
    * comment
    
    * comment
    bdraco authored Jan 30, 2022
    Configuration menu
    Copy the full SHA
    c865d3f View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. cli: cleanup discover, fetch update prior device access (#303)

    * Use on_discovered for smoother user experience
    * Remove --discover-only as unnecessary
    rytilahti authored Feb 2, 2022
    Configuration menu
    Copy the full SHA
    9ea8338 View commit details
    Browse the repository at this point in the history
  2. Guard emeter accesses to avoid keyerrors (#304)

    Raise an exception to inform the caller that update() is needed
    rytilahti authored Feb 2, 2022
    Configuration menu
    Copy the full SHA
    700f385 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2022

  1. Add 'internal_state' to return the results from the last update query (

    …#306)
    
    This can be useful for debugging purposes, e.g., for homeassistant diagnostics
    rytilahti authored Feb 7, 2022
    Configuration menu
    Copy the full SHA
    b61c0fe View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

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

Commits on Feb 15, 2022

  1. Allow using environment variables for discovery target, device type a…

    …nd debug (#313)
    
    * KASA_TYPE defines the device type (bulb, plug, dimmer, strip, lightstrip)
    * KASA_TARGET to define discovery target
    * KASA_DEBUG to enable debugging
    rytilahti authored Feb 15, 2022
    Configuration menu
    Copy the full SHA
    db170cf View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2022

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

Commits on Mar 2, 2022

  1. Don't crash on devices not reporting features (#317)

    Returns an empty set if no feature information is available
    rytilahti authored Mar 2, 2022
    Configuration menu
    Copy the full SHA
    b22f6b4 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. Add effect support for light strips (#293)

    * Add effect support for KL430
    
    * KL400 supports effects
    
    * Add KL400 fixture
    
    * Comments from review
    
    * actually commit the remove
    bdraco authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    58f6517 View commit details
    Browse the repository at this point in the history
  2. Release 0.4.2 (#321)

    This is the last release prior restructuring the code to enable easier extendability by moving towards more modular architecture.
    The most prominent change in this release is the support for effects on light strips.
    
    [Full Changelog](0.4.1...0.4.2)
    
    **Implemented enhancements:**
    
    - Allow environment variables for discovery target, device type and debug [\#313](#313) (@rytilahti)
    - Add 'internal\_state' to return the results from the last update query [\#306](#306) (@rytilahti)
    - Drop microsecond precision for on\_since [\#296](#296) (@rytilahti)
    - Add effect support for light strips [\#293](#293) (@bdraco)
    
    **Fixed bugs:**
    
    - TypeError: \_\_init\_\_\(\) got an unexpected keyword argument 'package\_name' [\#311](#311)
    - RuntimeError: Event loop is closed on WSL [\#294](#294)
    - Don't crash on devices not reporting features [\#317](#317) (@rytilahti)
    
    **Closed issues:**
    
    - SmartDeviceException: Communication error on system:set\_relay\_state [\#309](#309)
    - Add Support: ES20M and KS200M motion/light switches [\#308](#308)
    - New problem with installing on Ubuntu 20.04.3 LTS [\#305](#305)
    - KeyError: 'emeter' when discovering [\#302](#302)
    - RuntimeError: Event loop is closed  [\#291](#291)
    - provisioning format [\#290](#290)
    - Fix CI publishing on pypi [\#222](#222)
    - LED strips effects are not supported \(was LEDs is not turning on after switching on\) [\#191](#191)
    
    **Merged pull requests:**
    
    - Add pyupgrade to CI runs [\#314](#314) (@rytilahti)
    - Depend on asyncclick \>= 8 [\#312](#312) (@rytilahti)
    - Guard emeter accesses to avoid keyerrors [\#304](#304) (@rytilahti)
    - cli: cleanup discover, fetch update prior device access [\#303](#303) (@rytilahti)
    - Fix unsafe \_\_del\_\_ in TPLinkSmartHomeProtocol [\#300](#300) (@bdraco)
    - Improve typing for protocol class [\#289](#289) (@rytilahti)
    - Added a fixture file for KS220M [\#273](#273) (@mrbetta)
    rytilahti authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    6f5a60a View commit details
    Browse the repository at this point in the history
Loading
0