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.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.5.0
Choose a head ref
  • 17 commits
  • 39 files changed
  • 2 contributors

Commits on Apr 5, 2022

  1. Add module support & query their information during update cycle (#243)

    * Add module support & modularize existing query
    
    This creates a base to expose more features on the supported devices.
    At the moment, the most visible change is that each update cycle gets information from all available modules:
    * Basic system info
    * Cloud (new)
    * Countdown (new)
    * Antitheft (new)
    * Schedule (new)
    * Time (existing, implements the time/timezone handling)
    * Emeter (existing, partially separated from smartdevice)
    
    * Fix imports
    
    * Fix linting
    
    * Use device host instead of alias in module repr
    
    * Add property to list available modules, print them in cli state report
    
    * usage: fix the get_realtime query
    
    * separate usage from schedule to avoid multi-inheritance
    
    * Fix module querying
    
    * Add is_supported property to modules
    rytilahti committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    3926f32 View commit details
    Browse the repository at this point in the history
  2. Improve usage module, consolidate API with emeter (#249)

    * Consolidate API for both emeter&usage modules
    * Add new cli command 'usage' to query usage
    rytilahti committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    e358804 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c7b1b4 View commit details
    Browse the repository at this point in the history
  4. Do not request unsupported modules after the initial update (#298)

    * Do not request unsupported modules after the initial update
    
    * debugify logging
    rytilahti committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    3a7836c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bb013e7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c8ad99a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f0d66e4 View commit details
    Browse the repository at this point in the history
  8. Fix modularize with strips (#326)

    * Fix test_deprecated_type stalling
    
    * Fix strips with modularize
    
    * Fix test_deprecated_type stalling (#325)
    bdraco authored and rytilahti committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    1e4df7e View commit details
    Browse the repository at this point in the history
  9. Fix linting

    rytilahti committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    2a0919e View commit details
    Browse the repository at this point in the history
  10. Bump version to 0.5.0.dev0

    rytilahti committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    68038c9 View commit details
    Browse the repository at this point in the history
  11. Various documentation updates (#333)

    * Add a note about socket sharing
    
    * Show inherited members for apidocs
    
    * Remove outdated note of emeters not being supported on smartstrips
    
    * Describe emeter and usage modules, add note about NTP for time sync
    
    * Describe lib design and modules
    
    * Bump sphinx version, ignore d001 (line-length) for doc8
    
    * demote energy & usage to 3rd level, promote api for 2nd
    rytilahti authored Apr 5, 2022
    Configuration menu
    Copy the full SHA
    d848117 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a39cef9 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. Configuration menu
    Copy the full SHA
    6e988bd View commit details
    Browse the repository at this point in the history
  2. Drop deprecated, type-specific options in favor of --type (#336)

    * Drop deprecated, type-specific options in favor of --type
    
    * Fix tests
    rytilahti authored Apr 6, 2022
    Configuration menu
    Copy the full SHA
    631762b View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

  1. Add fixtures for kl420 (#339)

    * Add fixtures for kl420
    
    * readme
    bdraco authored Apr 14, 2022
    Configuration menu
    Copy the full SHA
    d2581bf View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2022

  1. Avoid retrying open_connection on unrecoverable errors (#340)

    * Avoid retrying open_connection on unrecoverable errors
    
    - We can retry so hard that we block the event loop
    
    Fixes
    ```
    2022-04-16 22:18:51 WARNING (MainThread) [asyncio] Executing <Task finished name=Task-3576 coro=<open_connection() done, defined at /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/streams.py:25> exception=ConnectionRefusedError(61, "Connect call failed (192.168.107.200, 9999)") created at /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py:460> took 1.001 seconds
    ```
    
    * comment
    bdraco authored Apr 24, 2022
    Configuration menu
    Copy the full SHA
    d908a5a View commit details
    Browse the repository at this point in the history
  2. Prepare 0.5.0 (#342)

    * Prepare 0.5.0
    
    * Add note about how to include release summary to changelog
    rytilahti authored Apr 24, 2022
    Configuration menu
    Copy the full SHA
    51fb908 View commit details
    Browse the repository at this point in the history
Loading