linariii / fritz-homeautomation-csharp

C# implementation of the AVM Home Automation API
MIT License
3 stars 1 forks source link

Empty response for unplugged DECT device #2

Open wetswan opened 1 year ago

wetswan commented 1 year ago

When calling the method "GetDevices" I get empty xml elements for my DECT 200. My guess is that the device is currently unplugged (but still in the list of devices).

The device part of the response looks as follows: `

0 0 Lavalampe

`

If I manually remove this part from the response before the deserialization, everything works fine. The issue seems to be the that it can't parse the empty value to one of the enum values (like State, Mode...). Possible solution could also be a default value?

Besides that: Thanks for this library, really great work :)