@o-lukas/homebridge-smartthings-tv 2.7.1 → 2.7.3

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.
@@ -171,6 +171,14 @@
171
171
 
172
172
  async function updateUi() {
173
173
  const pluginConfig = await homebridge.getPluginConfig();
174
+ if (pluginConfig.length === 0) {
175
+ pluginConfig[0] = {
176
+ platform: "smartthings-tv",
177
+ tokenType: "oauth"
178
+ };
179
+ await homebridge.updatePluginConfig(pluginConfig);
180
+ }
181
+
174
182
  switch (pluginConfig[0].tokenType) {
175
183
  case "oauth":
176
184
  homebridge.showSchemaForm();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "displayName": "Homebridge SmartThings TV",
3
3
  "name": "@o-lukas/homebridge-smartthings-tv",
4
4
  "type": "module",
5
- "version": "2.7.1",
5
+ "version": "2.7.3",
6
6
  "description": "This is a plugin for Homebridge. It offers some basic functions to control Samsung TVs using the SmartThings API.",
7
7
  "author": "o-lukas",
8
8
  "license": "MIT",
@@ -38,26 +38,26 @@
38
38
  "semantic-release": "semantic-release"
39
39
  },
40
40
  "dependencies": {
41
- "@homebridge/plugin-ui-utils": "^2.0.1",
41
+ "@homebridge/plugin-ui-utils": "^2.1.0",
42
42
  "@smartthings/core-sdk": "^8.4.1",
43
43
  "ping": "^0.4.4",
44
44
  "simple-oauth2": "^5.1.0",
45
45
  "wol": "^1.0.7"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^22.13.14",
48
+ "@types/node": "^22.15.30",
49
49
  "@types/ping": "^0.4.4",
50
50
  "@types/wol": "^1.0.4",
51
- "@typescript-eslint/eslint-plugin": "^8.28.0",
52
- "@typescript-eslint/parser": "^8.28.0",
53
- "eslint": "^9.23.0",
54
- "homebridge": "^1.9.0",
55
- "nodemon": "^3.1.9",
51
+ "@typescript-eslint/eslint-plugin": "^8.33.1",
52
+ "@typescript-eslint/parser": "^8.33.1",
53
+ "eslint": "^9.28.0",
54
+ "homebridge": "^1.10.0",
55
+ "nodemon": "^3.1.10",
56
56
  "rimraf": "^6.0.1",
57
- "semantic-release": "^24.2.3",
57
+ "semantic-release": "^24.2.5",
58
58
  "ts-node": "^10.9.2",
59
- "typescript": "^5.8.2",
60
- "typescript-eslint": "^8.28.0"
59
+ "typescript": "^5.8.3",
60
+ "typescript-eslint": "^8.33.1"
61
61
  },
62
62
  "release": {
63
63
  "branches": [