Skip to content

Tapo Rust v.0.7.12

Compare
Choose a tag to compare
@mihai-dinculescu mihai-dinculescu released this 27 Jun 22:00
· 70 commits to main since this release
878d5a6

Changed

  • H100's create child device handler methods now take a HubDevice enum instead of a String and are now async to allow for more flexibility. This enables the caller to find child devices by either device ID or nickname.
  • PlugIdentifier has been renamed to Plug.
  • Plug::ByDeviceId now verifies that the provided device ID is found and returns an Error::DeviceNotFound error when it's not.
  • HubDevice variants now take a String instead of a &str to allow for more flexibility.
  • Plug variants now take a String instead of a &str to allow for more flexibility.

Fixed

  • ColorLightSetDeviceInfoParams hue field validation has been changed from between 1 and 360 to between 0 and 360 to match the device's expected range.
  • Fixed an issue where the EnergyDataResult's start_timestampandend_timestamp` did not correctly adjust for timezone offsets.
  • The chrono dependency has been updated to 0.4.34 to fix the minimum version requirement.

Removed

  • The overheated property has been removed from DeviceInfoGenericResult because it's not present in the response of all devices.