Add support for changing the white strip type to flux_led (#63943)

This commit is contained in:
J. Nick Koston 2022-01-12 13:03:09 -10:00 committed by GitHub
parent 5622db10b1
commit 1c6ca908d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 304 additions and 54 deletions

View file

@ -23,6 +23,10 @@ def format_as_flux_mac(mac: str | None) -> str | None:
return None if mac is None else mac.replace(":", "").upper()
def _human_readable_option(const_option: str) -> str:
return const_option.replace("_", " ").title()
def _flux_color_mode_to_hass(
flux_color_mode: str | None, flux_color_modes: set[str]
) -> str: