fix Ht fieldType for device import

This commit is contained in:
Johannes Heck
2021-08-15 11:47:47 +02:00
committed by Paul Tyng
parent a9d0f1de5a
commit 4e9d935af2
2 changed files with 6 additions and 2 deletions

View File

@@ -321,9 +321,11 @@ func main() {
switch name {
case "X", "Y":
f.FieldType = "float64"
case "StpPriority", "Ht":
case "StpPriority":
f.FieldType = "string"
f.CustomUnmarshalType = ""
case "Ht":
f.FieldType = "int"
case "Channel", "BackupChannel", "TxPower":
if f.FieldType == "string" {
f.CustomUnmarshalType = "numberOrString"