Functions | |
| str | _get_mac_offset (str mac_addr, int offset) |
| bool | _off_by_one_mac (str firmware) |
| bool | async_entry_is_legacy (ConfigEntry entry) |
| Message | async_execute_lifx (Callable method) |
| ConfigEntry|None | async_get_legacy_entry (HomeAssistant hass) |
| list[Message] | async_multi_execute_lifx_with_retries (list[Callable] methods, int attempts, int overall_timeout) |
| int | convert_16_to_8 (int value) |
| int | convert_8_to_16 (int value) |
| list[float|int|None]|None | find_hsbk (HomeAssistant hass, **Any kwargs) |
| str | formatted_serial (str serial_number) |
| str | get_real_mac_addr (str mac_addr, str firmware) |
| int|None | infrared_brightness_option_to_value (str option) |
| str|None | infrared_brightness_value_to_option (int value) |
| dict[str, Any] | lifx_features (Light bulb) |
| bool | mac_matches_serial_number (str mac_addr, str serial_number) |
| list[float|int|None] | merge_hsbk (list[float|int|None] base, list[float|int|None] change) |
Variables | |
| FIX_MAC_FW = AwesomeVersion("3.70") | |
Support for LIFX.
|
private |
|
private |
| bool homeassistant.components.lifx.util.async_entry_is_legacy | ( | ConfigEntry | entry | ) |
| Message homeassistant.components.lifx.util.async_execute_lifx | ( | Callable | method | ) |
| ConfigEntry | None homeassistant.components.lifx.util.async_get_legacy_entry | ( | HomeAssistant | hass | ) |
| list[Message] homeassistant.components.lifx.util.async_multi_execute_lifx_with_retries | ( | list[Callable] | methods, |
| int | attempts, | ||
| int | overall_timeout | ||
| ) |
Execute multiple lifx callback methods with retries and wait for a response. This functional will the overall timeout by the number of attempts and wait for each method to return a result. If we don't get a result within the split timeout, we will send all methods that did not generate a response again. If we don't get a result after all attempts, we will raise an TimeoutError exception.
| int homeassistant.components.lifx.util.convert_16_to_8 | ( | int | value | ) |
| int homeassistant.components.lifx.util.convert_8_to_16 | ( | int | value | ) |
| list[float | int | None] | None homeassistant.components.lifx.util.find_hsbk | ( | HomeAssistant | hass, |
| **Any | kwargs | ||
| ) |
| str homeassistant.components.lifx.util.formatted_serial | ( | str | serial_number | ) |
| str homeassistant.components.lifx.util.get_real_mac_addr | ( | str | mac_addr, |
| str | firmware | ||
| ) |
| int | None homeassistant.components.lifx.util.infrared_brightness_option_to_value | ( | str | option | ) |
| str | None homeassistant.components.lifx.util.infrared_brightness_value_to_option | ( | int | value | ) |
| dict[str, Any] homeassistant.components.lifx.util.lifx_features | ( | Light | bulb | ) |
| bool homeassistant.components.lifx.util.mac_matches_serial_number | ( | str | mac_addr, |
| str | serial_number | ||
| ) |
| list[float | int | None] homeassistant.components.lifx.util.merge_hsbk | ( | list[float | int | None] | base, |
| list[float | int | None] | change | ||
| ) |