additional model
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Wolfgang Hottgenroth 2024-11-15 10:52:29 +01:00
parent 1870089942
commit b9e639e0a2
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -12,6 +12,7 @@ import (
"udi/database"
"udi/handlers/z2m/models/wsdcgq11lm"
"udi/handlers/z2m/models/wsdcgq01lm"
"udi/handlers/z2m/models/gs361ah04"
)
@ -83,6 +84,8 @@ func (self *Z2MHandler) Handle(message handler.MessageT) {
T = wsdcgq11lm.Observation{}
case "WSDCGQ01LM":
T = wsdcgq01lm.Observation{}
case "GS361A-H04":
T = gs361ah04.Observation{}
default:
self.Lost(fmt.Sprintf("No parser found for %s", device.DeviceType.ModelIdentifier), nil, message)
return