Classes | |
| class | EsphomeLight |
Functions | |
| str | _color_mode_to_ha (int mode) |
| tuple[int,...] | _filter_color_modes (list[int] supported, LightColorCapability features) |
| int | _least_complex_color_mode (tuple[int,...] color_modes) |
| int | _mired_to_kelvin (float mired_temperature) |
Variables | |
| dictionary | _COLOR_MODE_MAPPING |
| async_setup_entry | |
| dictionary | FLASH_LENGTHS = {FLASH_SHORT: 2, FLASH_LONG: 10} |
Support for ESPHome lights.
|
private |
|
private |
|
private |
|
private |
Convert absolute mired shift to degrees kelvin. This function rounds the converted value instead of flooring the value as is done in homeassistant.util.color.color_temperature_mired_to_kelvin(). If the value of mired_temperature is less than or equal to zero, return the original value to avoid a divide by zero.
|
private |
| homeassistant.components.esphome.light.async_setup_entry |