What's Changed
Bug Fixes
- Fixed duplicate commands on fan turn_on — When calling \ urn_on()\ with a percentage or preset mode, the integration was sending up to 3 redundant commands (power on + speed/preset + another power on). Now sends only the minimum required commands, reducing latency and avoiding potential device state race conditions.
Improvements
- Optional token-based authentication — PyDreo now accepts an optional \ oken\ parameter that bypasses the login API call. Useful for faster startup and testing. Token format supports optional region suffix (e.g., \ oken:EU).
- Fixed re-login with pre-set token — When a pre-set token expires, _re_login()\ now properly clears it and authenticates with credentials instead of short-circuiting.
Other
- Added missing preset modes for DR-HPF007S (707s) air circulator (#575)
- Test script fixes (\�syncio.sleep\ → \ ime.sleep, removed invalid attribute reference)