Skip to content

Conversation

@rytilahti
Copy link
Member

@rytilahti rytilahti commented Jan 31, 2024

Fixes the issue of uninitialized component list on child devices mentioned in #729 by initializing the components dict to an empty dict.

Adds a test that accesses all defined properties on child devices and fails if some fail.

@rytilahti rytilahti added the bug Something isn't working label Jan 31, 2024
@rytilahti rytilahti added this to the 0.6.2.1 milestone Jan 31, 2024
@codecov
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1acf4e8) 87.99% compared to head (60bf532) 88.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #732      +/-   ##
==========================================
+ Coverage   87.99%   88.18%   +0.19%     
==========================================
  Files          41       41              
  Lines        3632     3640       +8     
  Branches      910      911       +1     
==========================================
+ Hits         3196     3210      +14     
+ Misses        362      357       -5     
+ Partials       74       73       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco
Copy link
Member

bdraco commented Feb 1, 2024

Confirmed fixes the TP25s

@rytilahti rytilahti merged commit 1f15bcd into python-kasa:master Feb 2, 2024
@rytilahti rytilahti deleted the fix/declare_components branch February 2, 2024 16:29
rytilahti added a commit to rytilahti/python-kasa that referenced this pull request Feb 2, 2024
[Full Changelog](python-kasa/python-kasa@0.6.2...0.6.2.1)

**Fixed bugs:**

- Avoid crashing on childdevice property accesses [\python-kasa#732](python-kasa#732) (@rytilahti)

**Merged pull requests:**

- Retain last two chars for children device\_id [\python-kasa#733](python-kasa#733) (@rytilahti)
- Add TP15 fixture [\python-kasa#730](python-kasa#730) (@bdraco)
- Add TP25 fixtures [\python-kasa#729](python-kasa#729) (@bdraco)
- Various test code cleanups [\python-kasa#725](python-kasa#725) (@rytilahti)
- Unignore F401 for tests [\python-kasa#724](python-kasa#724) (@rytilahti)
@rytilahti rytilahti mentioned this pull request Feb 2, 2024
rytilahti added a commit that referenced this pull request Feb 2, 2024
[Full Changelog](0.6.2...0.6.2.1)

**Fixed bugs:**

- Avoid crashing on childdevice property accesses [\#732](#732) (@rytilahti)

**Merged pull requests:**

- Retain last two chars for children device\_id [\#733](#733) (@rytilahti)
- Add TP15 fixture [\#730](#730) (@bdraco)
- Add TP25 fixtures [\#729](#729) (@bdraco)
- Various test code cleanups [\#725](#725) (@rytilahti)
- Unignore F401 for tests [\#724](#724) (@rytilahti)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants