@homebridge-plugins/homebridge-meross 10.12.1-beta.1 → 10.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@homebridge-plugins/homebridge-meross` will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## v10.
|
|
5
|
+
## v10.13.0 (2026-04-05)
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
@@ -30,6 +30,7 @@ All notable changes to `@homebridge-plugins/homebridge-meross` will be documente
|
|
|
30
30
|
- fix: default connection value mismatch
|
|
31
31
|
- fix: mqtt disconnect not clearing state
|
|
32
32
|
- fix: string radix in fakegato toString call
|
|
33
|
+
- fix: incorrect unit casing in eve characteristic
|
|
33
34
|
|
|
34
35
|
## v10.12.0 (2026-02-28)
|
|
35
36
|
|
package/eslint.config.js
CHANGED
|
@@ -36,9 +36,9 @@ export default antfu(
|
|
|
36
36
|
'style/quote-props': ['error', 'consistent-as-needed'],
|
|
37
37
|
'test/no-only-tests': 'error',
|
|
38
38
|
'unicorn/no-useless-spread': 'error',
|
|
39
|
-
'unused-imports/no-unused-vars':
|
|
39
|
+
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
|
|
40
40
|
},
|
|
41
|
-
typescript:
|
|
41
|
+
typescript: false,
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
files: ['**/*.md'],
|
|
@@ -39,7 +39,7 @@ export default function (homebridge) {
|
|
|
39
39
|
return s
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
const ucfirst = val => val.charAt(0).toUpperCase() + val.
|
|
42
|
+
const ucfirst = val => val.charAt(0).toUpperCase() + val.substring(1)
|
|
43
43
|
|
|
44
44
|
const precisionRound = (number, precision) => {
|
|
45
45
|
const factor = 10 ** precision
|
|
@@ -71,7 +71,7 @@ export default class {
|
|
|
71
71
|
'[%s] FGS write file [%s] [%s].',
|
|
72
72
|
params.service.accessoryName,
|
|
73
73
|
fileLoc,
|
|
74
|
-
params.data.
|
|
74
|
+
params.data.substring(1, 81),
|
|
75
75
|
)
|
|
76
76
|
writer.storageHandler.writeFile(fileLoc, params.data, 'utf8', (...args) => {
|
|
77
77
|
this.writing = false
|
package/lib/fakegato/uuid.js
CHANGED
|
@@ -17,12 +17,12 @@ function toLongFormUUID(uuid, base = '-0000-1000-8000-0026BB765291') {
|
|
|
17
17
|
if (!isValid(`00000000${base}`)) {
|
|
18
18
|
throw new TypeError('base was not a valid base UUID')
|
|
19
19
|
}
|
|
20
|
-
return ((`00000000${uuid}`).
|
|
20
|
+
return ((`00000000${uuid}`).slice(-8) + base).toUpperCase()
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function toShortFormUUID(uuid, base = '-0000-1000-8000-0026BB765291') {
|
|
24
24
|
uuid = toLongFormUUID(uuid, base)
|
|
25
|
-
return uuid.
|
|
25
|
+
return uuid.substring(0, 8)
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { toLongFormUUID, toShortFormUUID }
|
package/lib/utils/eve-chars.js
CHANGED
|
@@ -79,7 +79,7 @@ export default class {
|
|
|
79
79
|
super('Reset Total', uuids.resetTotal)
|
|
80
80
|
this.setProps({
|
|
81
81
|
format: api.hap.Formats.UINT32,
|
|
82
|
-
unit: api.hap.Units.
|
|
82
|
+
unit: api.hap.Units.SECONDS,
|
|
83
83
|
perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_WRITE],
|
|
84
84
|
})
|
|
85
85
|
this.value = this.getDefaultValue()
|
package/package.json
CHANGED