mmakaay / esphome-xiaomi_bslamp2

ESPHome integration for the Xiaomi Mijia Bedside Lamp v2.
Other
219 stars 51 forks source link

Make code compile with both v1.20.* and v1.21.0 #46

Closed mmakaay closed 3 years ago

mmakaay commented 3 years ago

People run into issues with the main tree being incompatible with ESPHome v1.20.* (#45) I updated the code to introduce a define #HAS_COLOR_MODES, which is used to let the codebase automatically switch between the old and the new color mode code.