@homebridge-plugins/homebridge-wemo 7.2.3 → 7.3.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 +8 -0
- package/eslint.config.js +7 -12
- package/lib/platform.js +1 -9
- package/lib/utils/lang-en.js +0 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@homebridge-plugins/homebridge-wemo` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## v7.3.0 (2026-02-15)
|
|
6
|
+
|
|
7
|
+
### Changes
|
|
8
|
+
|
|
9
|
+
- determine debug mode from `-D` flag
|
|
10
|
+
- updated dependencies
|
|
11
|
+
- updated dependencies + lint rules
|
|
12
|
+
|
|
5
13
|
## v7.2.3 (2025-12-05)
|
|
6
14
|
|
|
7
15
|
### Changes
|
package/eslint.config.js
CHANGED
|
@@ -3,34 +3,29 @@ import { antfu } from '@antfu/eslint-config'
|
|
|
3
3
|
/** @type {typeof antfu} */
|
|
4
4
|
export default antfu(
|
|
5
5
|
{
|
|
6
|
-
ignores: [],
|
|
6
|
+
ignores: ['README.md'],
|
|
7
7
|
jsx: false,
|
|
8
8
|
rules: {
|
|
9
9
|
'curly': ['error', 'multi-line'],
|
|
10
10
|
'new-cap': 'off',
|
|
11
|
-
'jsdoc/check-alignment': 'warn',
|
|
12
|
-
'jsdoc/check-line-alignment': 'warn',
|
|
13
|
-
'jsdoc/require-returns-check': 0,
|
|
14
|
-
'jsdoc/require-returns-description': 0,
|
|
15
11
|
'no-undef': 'error',
|
|
16
12
|
'perfectionist/sort-exports': 'error',
|
|
17
13
|
'perfectionist/sort-imports': [
|
|
18
14
|
'error',
|
|
19
15
|
{
|
|
20
16
|
groups: [
|
|
21
|
-
'type',
|
|
22
|
-
'
|
|
17
|
+
['type-builtin', 'type-external', 'type-internal'],
|
|
18
|
+
['type-parent', 'type-sibling', 'type-index'],
|
|
23
19
|
'builtin',
|
|
24
20
|
'external',
|
|
25
21
|
'internal',
|
|
26
|
-
['parent-type', 'sibling-type', 'index-type'],
|
|
27
22
|
['parent', 'sibling', 'index'],
|
|
28
|
-
'
|
|
23
|
+
'side-effect',
|
|
29
24
|
'unknown',
|
|
30
25
|
],
|
|
31
26
|
order: 'asc',
|
|
32
27
|
type: 'natural',
|
|
33
|
-
newlinesBetween:
|
|
28
|
+
newlinesBetween: 1,
|
|
34
29
|
},
|
|
35
30
|
],
|
|
36
31
|
'perfectionist/sort-named-exports': 'error',
|
|
@@ -41,8 +36,8 @@ export default antfu(
|
|
|
41
36
|
'style/quote-props': ['error', 'consistent-as-needed'],
|
|
42
37
|
'test/no-only-tests': 'error',
|
|
43
38
|
'unicorn/no-useless-spread': 'error',
|
|
44
|
-
'unused-imports/no-unused-vars':
|
|
39
|
+
'unused-imports/no-unused-vars': 0,
|
|
45
40
|
},
|
|
46
|
-
typescript:
|
|
41
|
+
typescript: true,
|
|
47
42
|
},
|
|
48
43
|
)
|
package/lib/platform.js
CHANGED
|
@@ -40,7 +40,7 @@ export default class {
|
|
|
40
40
|
try {
|
|
41
41
|
this.api = api
|
|
42
42
|
this.log = log
|
|
43
|
-
this.isBeta =
|
|
43
|
+
this.isBeta = process.argv.includes('-D')
|
|
44
44
|
|
|
45
45
|
// Configuration objects for accessories
|
|
46
46
|
this.ignoredDevices = []
|
|
@@ -345,14 +345,6 @@ export default class {
|
|
|
345
345
|
if (this.isBeta) {
|
|
346
346
|
this.log.debug = this.log
|
|
347
347
|
this.log.debugWarn = this.log.warn
|
|
348
|
-
|
|
349
|
-
// Log that using a beta will generate a lot of debug logs
|
|
350
|
-
if (this.isBeta) {
|
|
351
|
-
const divide = '*'.repeat(platformLang.beta.length + 1) // don't forget the full stop (+1!)
|
|
352
|
-
this.log.warn(divide)
|
|
353
|
-
this.log.warn(`${platformLang.beta}.`)
|
|
354
|
-
this.log.warn(divide)
|
|
355
|
-
}
|
|
356
348
|
} else {
|
|
357
349
|
this.log.debug = () => {}
|
|
358
350
|
this.log.debugWarn = () => {}
|
package/lib/utils/lang-en.js
CHANGED
|
@@ -3,7 +3,6 @@ export default {
|
|
|
3
3
|
accNotReady: 'has not been discovered yet so commands will fail',
|
|
4
4
|
alDisabled: 'adaptive lighting disabled due to significant colour change',
|
|
5
5
|
awaiting: 'The following devices have still not been initially found',
|
|
6
|
-
beta: 'You are using a beta version of the plugin - you will experience more logging than normal',
|
|
7
6
|
brand: 'Belkin Wemo',
|
|
8
7
|
brightnessFail: 'could not obtain updated brightness as',
|
|
9
8
|
cantCtl: 'sending update failed as',
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-wemo",
|
|
3
3
|
"alias": "Wemo",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "7.
|
|
5
|
+
"version": "7.3.0",
|
|
6
6
|
"description": "Homebridge plugin to integrate Wemo devices into HomeKit.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "bwp91",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"lint:fix": "npm run lint -- --fix"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@homebridge/plugin-ui-utils": "^2.
|
|
59
|
-
"axios": "^1.13.
|
|
58
|
+
"@homebridge/plugin-ui-utils": "^2.2.0",
|
|
59
|
+
"axios": "^1.13.5",
|
|
60
60
|
"ip": "^2.0.1",
|
|
61
61
|
"node-ssdp": "^4.0.1",
|
|
62
|
-
"p-queue": "^9.0
|
|
62
|
+
"p-queue": "^9.1.0",
|
|
63
63
|
"xml2js": "^0.6.2",
|
|
64
64
|
"xmlbuilder": "^15.1.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@antfu/eslint-config": "^
|
|
67
|
+
"@antfu/eslint-config": "^7.4.3"
|
|
68
68
|
}
|
|
69
69
|
}
|