Skip to content

Commit

Permalink
Disable effects due to thread management.
Browse files Browse the repository at this point in the history
  • Loading branch information
EAGrahamJr committed Aug 5, 2024
1 parent e40db71 commit bc7383d
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ open class KobotLight(

override fun discovery() = super.discovery().apply {
put("brightness", true)
controller.lightEffects?.let {
put("effect", true)
put("effect_list", it.sorted())
}
// controller.lightEffects?.let {
// put("effect", true)
// put("effect_list", it.sorted())
// }
}

override fun currentState() = controller.current().json().toString()
Expand All @@ -157,7 +157,8 @@ open class KobotLight(
theFuture?.cancel(true)

if (effect != null) {
theFuture = controller.lightEffects?.takeIf { effect in it }?.let { controller exec effect }
TODO("Effects are not enabled due to thread management")
// theFuture = controller.lightEffects?.takeIf { effect in it }?.let { controller exec effect }
} else {
controller set this
}
Expand All @@ -171,7 +172,7 @@ open class KobotLight(
*/
open class KobotRGBLight(
uniqueId: String,
val controller: LightController,
controller: LightController,
name: String,
deviceIdentifier: DeviceIdentifier
) : KobotLight(uniqueId, controller, name, deviceIdentifier) {
Expand Down

0 comments on commit bc7383d

Please sign in to comment.