mill1000 / midea-msmart

Python library for local control of Midea (and associated brands) smart air conditioners.
MIT License
49 stars 2 forks source link

Only update swing angles when response field is not none #117

Closed mill1000 closed 6 months ago

mill1000 commented 6 months ago

When parsing PropertiesResponses, only update the device state with fields from the message that are not None.

This should fix repeated logs of

Unknown <enum 'SwingAngle'>: None

which were originally noticed in https://github.com/mill1000/midea-ac-py/issues/101#issuecomment-1999156216