Ligio / ozmo

GNU General Public License v3.0
24 stars 12 forks source link

Handle missing type property in clean report #16

Closed AfonsoFGarcia closed 1 year ago

AfonsoFGarcia commented 1 year ago

With my Deebot OZMO Slim10, the type property of the clean_report is only returned when the vacuum is actually cleaning. If it's in standby or returning to the charger, it returns nothing.

This PR handles it by setting a default type when the property is not returned, with the same behaviour as when Ecovacs returns a unexpected value.