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 #1065 - light level stuck at max #1066

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

4gra
Copy link
Contributor

@4gra 4gra commented Oct 6, 2024

fix light level report, which was stuck at max due to the inappropriate assignment operator.

♻️ Current situation

See #1065 - ambient light level reported to HomeKit is stuck at 6000 lux despite light level report being accurate. Debugging revealed an accidental assignment operator ("=") where a comparison ("===") was required.

💡 Proposed solution

This PR contains a one-line patch to fix the above.

⚙️ Release Notes

No change required.

Testing

Not aware of any relevant tests

Reviewer Nudging

Observe the ambient light level of a connected hub 2 in home bridge UI before and after the patch.

fix light level report, which was stuck at max due to the inappropriate assignment operator.
@github-actions github-actions bot added enhancement New feature or request latest labels Oct 6, 2024
@donavanbecker donavanbecker changed the base branch from latest to beta-3.8.3 October 7, 2024 03:44
@donavanbecker donavanbecker merged commit e82b4e1 into OpenWonderLabs:beta-3.8.3 Oct 7, 2024
7 checks passed
@donavanbecker
Copy link
Collaborator

merged into beta. New beta release has it as part of it.

donavanbecker pushed a commit that referenced this pull request Oct 9, 2024
fix light level report, which was stuck at max due to the inappropriate
assignment operator.

## ♻️ Current situation

See #1065 - ambient light level reported to HomeKit is stuck at 6000 lux
despite light level report being accurate. Debugging revealed an
accidental assignment operator ("=") where a comparison ("===") was
required.

## 💡 Proposed solution

This PR contains a one-line patch to fix the above.

## ⚙️ Release Notes

No change required.

### Testing

Not aware of any relevant tests

### Reviewer Nudging

Observe the ambient light level of a connected hub 2 in home bridge UI
before and after the patch.
donavanbecker added a commit that referenced this pull request Oct 9, 2024
- Fix incorrect handling of openState in Contact Sensor [#1061](#1061), Thanks [@nzws](https://github.com/nzws)
- Fix light level stuck at ma [#1066](#1066), Thanks [@4gra](https://github.com/4gra)
- Housekeeping and updated dependencies.

**Full Changelog**: v3.8.2...v3.8.3

Co-Authored-By: Donavan Becker <beckersmarthome@icloud.com>
donavanbecker added a commit that referenced this pull request Oct 9, 2024
- Fix incorrect handling of openState in Contact Sensor [#1061](#1061), Thanks [@nzws](https://github.com/nzws)
- Fix light level stuck at ma [#1066](#1066), Thanks [@4gra](https://github.com/4gra)
- Housekeeping and updated dependencies.

**Full Changelog**: v3.8.2...v3.8.3
@donavanbecker donavanbecker mentioned this pull request Oct 9, 2024
donavanbecker added a commit that referenced this pull request Oct 9, 2024
## [3.8.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.8.3) (2024-10-09)

### What's Changed
- Fix incorrect handling of openState in Contact Sensor [#1061](#1061), Thanks [@nzws](https://github.com/nzws)
- Fix light level stuck at ma [#1066](#1066), Thanks [@4gra](https://github.com/4gra)
- Housekeeping and updated dependencies.

**Full Changelog**: v3.8.2...v3.8.3

---------

Co-authored-by: Yuzuki Aida <i@yuzu.sh>
Co-authored-by: Graham <4gra@users.noreply.github.com>
@4gra 4gra deleted the patch-1 branch October 9, 2024 11:58
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