chore: Update dependencies

This commit is contained in:
2026-05-12 04:54:34 +02:00
parent 5a2c1b0a13
commit b66357749b
7 changed files with 939 additions and 614 deletions
+4 -8
View File
@@ -122,15 +122,11 @@ impl OnMqtt for HueSwitch {
Action::LeftHold => self.config.left_hold_callback.call(self.clone()).await,
Action::RightHold => self.config.right_hold_callback.call(self.clone()).await,
// If there is no hold action, the switch will act like a normal release
Action::RightHoldRelease => {
if self.config.right_hold_callback.is_empty() {
self.config.right_callback.call(self.clone()).await
}
Action::RightHoldRelease if self.config.right_hold_callback.is_empty() => {
self.config.right_callback.call(self.clone()).await
}
Action::LeftHoldRelease => {
if self.config.left_hold_callback.is_empty() {
self.config.left_callback.call(self.clone()).await
}
Action::LeftHoldRelease if self.config.left_hold_callback.is_empty() => {
self.config.left_callback.call(self.clone()).await
}
_ => {}
}