emorydunn / StreamDeckPlugin

A library for creating Stream Deck plugins in Swift.
https://emorydunn.github.io/StreamDeckPlugin/
MIT License
50 stars 7 forks source link

The `device` Key is Technically Optional #8

Open emorydunn opened 2 years ago

emorydunn commented 2 years ago

In doing some tests on a laptop that hasn't had a Stream Deck connected I'm getting a decoding error:

09:34:10.3280 Failed to decode data for event titleParametersDidChange
09:34:10.3282 The data couldn’t be read because it is missing.
09:34:10.3288 keyNotFound(CodingKeys(stringValue: "device", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"device\", intValue: nil) (\"device\").", underlyingError: nil))

Admittedly this is kind of an unusual case.