Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix max retry #1088

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Fix max retry #1088

merged 1 commit into from
Oct 24, 2024

Conversation

dnicolson
Copy link
Collaborator

♻️ Current situation

The value 0 cannot be used as it is evaluated in the same way as being unset.

💡 Proposed solution

Check the actual type of the value to allow 0 retries.

This is needed with v4.0.0+ as READ_TIMEOUT errors occur even on success, resulting in erratic retry behavior. Using v.3.7.0 is still the safest option.

@github-actions github-actions bot added enhancement New feature or request latest labels Oct 23, 2024
@donavanbecker donavanbecker merged commit a63cfd7 into OpenWonderLabs:latest Oct 24, 2024
8 checks passed
@donavanbecker
Copy link
Collaborator

Thanks!

donavanbecker added a commit that referenced this pull request Nov 2, 2024
## [4.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v4.1.0) (2024-11-02)

### What's Changed
- Remove unneeded light level check [#1096](#1096), Thanks [@dnicolson](https://github.com/dnicolson)
- Remove unneeded async [#1089](#1089), [#1094](#1094), & [#1097](#1097) ; Thanks [@dnicolson](https://github.com/dnicolson)
- Fix characteristic warning [#1093](#1093), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix light level [#1092](#1092), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix device types [#1091](#1091), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix curtain light sensor [#1090](#1090), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix max retry [#1088](#1088), Thanks [@dnicolson](https://github.com/dnicolson)
- Housekeeping and updated dependencies.

**Full Changelog**: v4.1.0...v4.1.1
@donavanbecker donavanbecker mentioned this pull request Nov 2, 2024
donavanbecker added a commit that referenced this pull request Nov 2, 2024
## [4.1.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v4.1.0) (2024-11-02)

### What's Changed
- Remove unneeded light level check [#1096](#1096), Thanks [@dnicolson](https://github.com/dnicolson)
- Remove unneeded async [#1089](#1089), [#1094](#1094), & [#1097](#1097) ; Thanks [@dnicolson](https://github.com/dnicolson)
- Fix characteristic warning [#1093](#1093), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix light level [#1092](#1092), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix device types [#1091](#1091), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix curtain light sensor [#1090](#1090), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix max retry [#1088](#1088), Thanks [@dnicolson](https://github.com/dnicolson)
- Housekeeping and updated dependencies.

**Full Changelog**: v4.1.0...v4.1.1
donavanbecker added a commit that referenced this pull request Nov 2, 2024
- Remove unneeded light level check [#1096](#1096), Thanks [@dnicolson](https://github.com/dnicolson)
- Remove unneeded async [#1089](#1089), [#1094](#1094), & [#1097](#1097) ; Thanks [@dnicolson](https://github.com/dnicolson)
- Fix characteristic warning [#1093](#1093), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix light level [#1092](#1092), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix device types [#1091](#1091), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix curtain light sensor [#1090](#1090), Thanks [@dnicolson](https://github.com/dnicolson)
- Fix max retry [#1088](#1088), Thanks [@dnicolson](https://github.com/dnicolson)
- Housekeeping and updated dependencies.

**Full Changelog**: v4.1.0...v4.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request latest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants