Skip to content

Commit 8cc38d4

Browse files
committed
v3.1.2
1 parent 9dc224d commit 8cc38d4

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
### Bug Fixes
44

55
* Pico Matter: set `multiPressMax` to `2` unconditionally — the Matter spec requires this attribute to be `>= 2`, so using `1` when double-press is disabled caused a `[constraint] Constraint "min 2": Value 1 is not within bounds` validation error and prevented all Pico remotes from registering in Matter mode
6+
* button-press visibility: restore default button press logging to `info` so physical Pico presses are visible in normal Homebridge logs without requiring global debug mode
7+
* config simplification: remove redundant `preferMatter` toggle and use `enableMatter` as the single Matter on/off control with HAP fallback behavior unchanged
8+
9+
### Maintenance
10+
11+
* config UI: reorder sections for clearer flow (general options, Matter toggle, device exclusions, logging, then bridge secrets)
12+
* docs/comments: align Logger and button-tracker default descriptions with the updated `buttonPressLogging` default behavior
613

714
**Full Changelog**: https://github.com/homebridge-plugins/homebridge-lutron-caseta-leap/compare/v3.1.1...v3.1.2
815

src/PicoRemote.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import type { GlobalOptions } from './Platform.HAP.js'
2+
13
import { describe, expect, it, vi } from 'vitest'
24

35
import { PicoRemote } from './PicoRemote.js'
4-
import type { GlobalOptions } from './Platform.HAP.js'
56

6-
describe('PicoRemote.getMatterClusters', () => {
7+
describe('picoRemote.getMatterClusters', () => {
78
function createPlatformAndAccessory(deviceType = 'Pico2Button') {
89
const platform = {
910
log: {
@@ -118,4 +119,4 @@ describe('PicoRemote.getMatterClusters', () => {
118119
expect(part.clusters.switch.longPressTime).toBeUndefined()
119120
}
120121
})
121-
})
122+
})

src/PicoRemote.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ export class PicoRemote {
517517

518518
const sortedAliases = Array.from(dentry.values()).sort((a, b) => a.index - b.index)
519519
this.platform.log.debug(`[Matter] Creating ${sortedAliases.length} button parts for '${type}'`)
520-
const isDoublePressEnabled = this.options.clickSpeedDouble !== 'disabled'
521520
const isLongPressEnabled = this.options.clickSpeedLong !== 'disabled'
522521

523522
const parts = sortedAliases.map((alias) => {

0 commit comments

Comments
 (0)