h4 / lywsd02

MIT License
169 stars 34 forks source link

Change _process_history_data to use a single unpack #27

Closed uduncanu closed 3 years ago

uduncanu commented 3 years ago

The data being sent appears to be little endian, which is what was preventing a single unpack from working. This replaces the multi-command process to a single one.

I've tested this with a LYWSD03MMC, but don't have a LYWSD02 on hand at present to check that that works with this change too.

h4 commented 3 years ago

@uduncanu @53RT thank you!