Make code compile with both v1.20.* and v1.21.0 (#46)
* Implemented compatibility with color mode support in the latest Home Assistant + ESPHome.
* Made the code compile with both v1.20.* and v.1.21.0.
* Made the code compile with both v1.20.* and v.1.21.0.
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>