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

Add brightness characteristic only for supported devices #353

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dnicolson
Copy link

This adds the brightness characteristic only if the device supports it. Fixes #325.

This also removes the this.category === Categories.OUTLET conditional as it is already evaluated at https://github.com/plasticrake/homebridge-tplink-smarthome/blob/e0de1be/src/homekit-device/plug.ts#L48.

@dnicolson dnicolson changed the title Remove unneeded conditional statement Add brightness characteristic only for supported devices Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8.0.1: "Removing stale Characteristics" warnings
1 participant