Skip to content

Commit

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

- The `send()` method of the `.set()` API now takes a reference to the device handler in order to allow for better ergonomics.

### Fixed

- The device info response for the L510, L520, and L610 devices has been fixed.

## [Python Unreleased][Unreleased]

### Added
Expand All @@ -19,6 +23,7 @@ file. This change log follows the conventions of
### Fixed

- Fixed a misconfiguration that was preventing the sdist package from working properly.
- The device info response for the L510, L520, and L610 devices has been fixed.

## [Rust v0.7.8][v0.7.8] - 2024-01-22

Expand Down
5 changes: 0 additions & 5 deletions tapo-py/tapo-py/tapo/light_handler.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ class DeviceInfoLightResult:

# Unique to this device
brightness: int
dynamic_light_effect_enable: bool
dynamic_light_effect_id: Optional[str]
hue: Optional[int]
saturation: Optional[int]
color_temp: int
default_states: DefaultLightState
"""The default state of a device to be used when internet connectivity is lost after a power cut."""

Expand Down
5 changes: 0 additions & 5 deletions tapo/src/responses/device_info_result/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ pub struct DeviceInfoLightResult {
// Unique to this device
//
pub brightness: u8,
pub dynamic_light_effect_enable: bool,
pub dynamic_light_effect_id: Option<String>,
pub hue: Option<u16>,
pub saturation: Option<u16>,
pub color_temp: u16,
/// The default state of a device to be used when internet connectivity is lost after a power cut.
pub default_states: DefaultLightState,
}
Expand Down

0 comments on commit ce23583

Please sign in to comment.