Skip to content

Commit

Permalink
Fix the device info response for the L510, L520, and L610 devices.
Browse files Browse the repository at this point in the history
Addresses #159.
  • Loading branch information
mihai-dinculescu committed Jan 19, 2024
1 parent 76f0ea7 commit 1d731f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ file. This change log follows the conventions of

## [Rust Unreleased][Unreleased]

### Fixed

- The device info response for the L510, L520, and L610 devices has been fixed to have the `re_power_type` field as optional.

## [Python Unreleased][Unreleased]

### Fixed

- The device info response for the L510, L520, and L610 devices has been fixed to have the `re_power_type` field as optional.

## [Rust v0.7.7][v0.7.7] - 2024-01-13

### Changed
Expand Down
2 changes: 1 addition & 1 deletion tapo-py/tapo.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class DefaultLightState:
"""Light Default State."""

brightness: DefaultBrightnessState
re_power_type: DefaultPowerType
re_power_type: Optional[DefaultPowerType]

class DeviceInfoPlugResult:
"""Device info of Tapo P100, P105, P110 and P115. Superset of `GenericDeviceInfoResult`."""
Expand Down
2 changes: 1 addition & 1 deletion tapo/src/responses/device_info_result/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ impl DecodableResultExt for DeviceInfoLightResult {
#[allow(missing_docs)]
pub struct DefaultLightState {
pub brightness: DefaultBrightnessState,
pub re_power_type: DefaultPowerType,
pub re_power_type: Option<DefaultPowerType>,
}

0 comments on commit 1d731f0

Please sign in to comment.