Skip to content

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