Bladeren bron

Swap symlinks around to avoid HACS breakage.

Symlinks are trying to support different versions of HomeAssistant.
Latest 0.109 uses translations/en.json, so make that the master copy of
the file, and make strings.json a symlink to that.
Update hacs.json to indicate 0.109 is the minimum version - although the
source code supports 0.96 and later, the way HACS breaks the symlinks on
installation means it will only work on 0.109 if installed through HACS.
Jason Rumney 5 jaren geleden
bovenliggende
commit
350e373998

+ 0 - 46
custom_components/tuya_local/strings.json

@@ -1,46 +0,0 @@
-{
-  "title": "Tuya Local",
-  "config": {
-    "step": {
-      "user": {
-        "title": "Configure your Tuya Local device",
-        "description": "[Follow these instructions to find your device id and local key.](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md)",
-        "data": {
-          "name": "Name",
-          "host": "IP address or hostname",
-          "device_id": "Device ID (uuid)",
-          "local_key": "Local key",
-          "type": "Device type",
-          "climate": "Include a climate entity",
-          "display_light": "Include LED display as a light entity",
-          "child_lock": "Include child lock as a lock entity (unsupported on fans)"
-        }
-      }
-    },
-    "abort": {
-      "already_configured": "A device with that ID has already been added."
-    },
-    "error": {
-      "connection": "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
-    }
-  },
-  "options": {
-    "step": {
-      "user": {
-        "title": "Configure your Tuya Local device",
-        "description": "[Follow these instructions to find your local key.](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md)",
-        "data": {
-          "host": "IP address or hostname",
-          "local_key": "Local key",
-          "type": "Device type",
-          "climate": "Include device as a climate entity",
-          "display_light": "Include LED display as light entity",
-          "child_lock": "Include child lock as lock entity (unsupported on fans)"
-        }
-      }
-    },
-    "error": {
-      "connection": "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
-    }
-  }
-}

+ 1 - 0
custom_components/tuya_local/strings.json

@@ -0,0 +1 @@
+translations/en.json

+ 0 - 1
custom_components/tuya_local/translations/en.json

@@ -1 +0,0 @@
-../strings.json

+ 46 - 0
custom_components/tuya_local/translations/en.json

@@ -0,0 +1,46 @@
+{
+  "title": "Tuya Local",
+  "config": {
+    "step": {
+      "user": {
+        "title": "Configure your Tuya Local device",
+        "description": "[Follow these instructions to find your device id and local key.](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md)",
+        "data": {
+          "name": "Name",
+          "host": "IP address or hostname",
+          "device_id": "Device ID (uuid)",
+          "local_key": "Local key",
+          "type": "Device type",
+          "climate": "Include a climate entity",
+          "display_light": "Include LED display as a light entity",
+          "child_lock": "Include child lock as a lock entity (unsupported on fans)"
+        }
+      }
+    },
+    "abort": {
+      "already_configured": "A device with that ID has already been added."
+    },
+    "error": {
+      "connection": "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
+    }
+  },
+  "options": {
+    "step": {
+      "user": {
+        "title": "Configure your Tuya Local device",
+        "description": "[Follow these instructions to find your local key.](https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md)",
+        "data": {
+          "host": "IP address or hostname",
+          "local_key": "Local key",
+          "type": "Device type",
+          "climate": "Include device as a climate entity",
+          "display_light": "Include LED display as light entity",
+          "child_lock": "Include child lock as lock entity (unsupported on fans)"
+        }
+      }
+    },
+    "error": {
+      "connection": "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
+    }
+  }
+}

+ 1 - 1
hacs.json

@@ -10,5 +10,5 @@
     "NZ",
     "AU"
   ],
-  "homeassistant": "0.96.0"
+  "homeassistant": "0.109.0"
 }