Skip to content

Commit 4e9d935

Browse files
yoyostilepaultyng
authored andcommitted
fix Ht fieldType for device import
1 parent a9d0f1d commit 4e9d935

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

fields/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,11 @@ func main() {
321321
switch name {
322322
case "X", "Y":
323323
f.FieldType = "float64"
324-
case "StpPriority", "Ht":
324+
case "StpPriority":
325325
f.FieldType = "string"
326326
f.CustomUnmarshalType = ""
327+
case "Ht":
328+
f.FieldType = "int"
327329
case "Channel", "BackupChannel", "TxPower":
328330
if f.FieldType == "string" {
329331
f.CustomUnmarshalType = "numberOrString"

unifi/device.generated.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)