Make the onEventReceived type more explicit
This commit is contained in:
parent
31e9312731
commit
ae66114ca1
2 changed files with 5 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ let private handleEvent (mqttClient: IMqttClient) (logger: ILogger) (state: Stat
|
|||
do! publishZigbeeCommands mqttClient logger commands
|
||||
return newState
|
||||
}
|
||||
| Error UnknownType -> async.Return state
|
||||
| Error(ParseZigbeeEventError UnknownType) -> async.Return state
|
||||
| Error e ->
|
||||
logger.LogError("Error {Error} while {Event}", e, event)
|
||||
async.Return state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue