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.0.dev0
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.0.dev1
Choose a head ref
  • 12 commits
  • 45 files changed
  • 3 contributors

Commits on Jun 14, 2020

  1. Add transition support for SmartDimmer (#69)

    * Adds a transition param to set_brightness(), turn_on(), and turn_off() that specifies the duration in milliseconds that the dimmer switch will take to transition to the new state.
    * Fixes bug where set_brightness(0) was allowed even though the dimmer does not support it. Now brightness values of 0 are coerced to 1 to be consistent with bulbs (which do support brightness values of 0).
    connorproctor authored Jun 14, 2020
    Configuration menu
    Copy the full SHA
    dd073fa View commit details
    Browse the repository at this point in the history
  2. Bulbs: allow specifying transition for state changes (#70)

    All state changing functions now allow defining transition time in milliseconds
    rytilahti authored Jun 14, 2020
    Configuration menu
    Copy the full SHA
    99e0c4a View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2020

  1. Simplify API documentation by using doctests (#73)

    * Add doctests to SmartBulb
    
    * Add SmartDevice doctests, cleanup README.md
    
    * add doctests for smartplug and smartstrip
    
    * add discover doctests
    
    * Fix bulb mock
    
    * add smartdimmer doctests
    
    * add sphinx-generated docs, cleanup readme a bit
    
    * remove sphinx-click as it does not work with asyncclick
    
    * in preparation for rtd hooking, move doc deps to be separate from dev deps
    
    * pytestmark needs to be applied separately for each and every file, this fixes the tests
    
    * use pathlib for resolving relative paths
    
    * Skip discovery doctest on python3.7
    
    The code is just fine, but some reason the mocking behaves differently between 3.7 and 3.8.
    The latter seems to accept a discrete object for asyncio.run where the former expects a coroutine..
    rytilahti authored Jun 30, 2020
    Configuration menu
    Copy the full SHA
    f9a987c View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2020

  1. Improve bulb API, force turn on for all light changes as offline chan…

    …ges are not supported (#76)
    
    * Add ignore_default to lights to allow setting to specific light state, force bulb on when changing the settings, allow defining brightness for set_color_temp, add a couple of new API methods
    
    * Fix and simplify transition_light_state to make tests pass
    rytilahti authored Jul 6, 2020
    Configuration menu
    Copy the full SHA
    44e2998 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d722e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    96c1536 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2020

  1. Improve installation instructions (#86)

    * Improve installation instructions
    
    * Add simple instructions how to install the package
    * Move the list of supported devices to the end of the file
    
    Fixes #60 (hopefully)
    
    * Remove 'see below for devenv instructions'
    rytilahti authored Jul 12, 2020
    Configuration menu
    Copy the full SHA
    fccb897 View commit details
    Browse the repository at this point in the history
  2. Add parse_pcap to devtools, improve readme on contributing (#84)

    * Add parse_pcap to devtools, improve readme on contributing
    
    * simplify context extraction
    rytilahti authored Jul 12, 2020
    Configuration menu
    Copy the full SHA
    713b443 View commit details
    Browse the repository at this point in the history
  3. add .readthedocs.yml required for poetry doc builds (#89)

    * add .readthedocs.yml required for poetry builds
    
    * require python 3.7 for builds
    
    * Add documentation badge, fix the docs link
    rytilahti authored Jul 12, 2020
    Configuration menu
    Copy the full SHA
    0edbb43 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2020

  1. Add support for lightstrips (KL430) (#74)

    * Preliminary support for light strips
    
    * Add color temperature range and cleanup, thanks to @darkoppressor
    
    * Use lightstrip instead of {led,light}strip consistently everywhere
    * The cli flag is now --lightstrip
    
    * add apidocs
    
    * Add fixture file for KL430
    
    Signed-off-by: Kevin Wells <darkoppressor@gmail.com>
    
    * Add discovery support, expose effect and length of the strip
    
    * use set_light_state instead of transition_light_state
    
    * Add tests for lightstrip
    
    * add doctests
    
    * Add KL430 to supported devices in README
    
    Co-authored-by: Kevin Wells <darkoppressor@gmail.com>
    rytilahti and darkoppressor authored Jul 19, 2020
    Configuration menu
    Copy the full SHA
    d30d00a View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2020

  1. add a small example script to show library usage (#90)

    * add a small example script to show library usage
    
    * asyncio.run++
    rytilahti authored Jul 20, 2020
    Configuration menu
    Copy the full SHA
    6844166 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. Release 0.4.0.dev1 (#93)

    * Release 0.4.0.pre1
    
    * update RELEASING.md
    
    * Fix release naming from .pre to .dev
    rytilahti authored Jul 28, 2020
    Configuration menu
    Copy the full SHA
    c67bda8 View commit details
    Browse the repository at this point in the history
Loading