Classes | |
| class | _IconsCache |
Functions | |
| dict[str, Any] | _async_get_component_icons (HomeAssistant hass, set[str] components, dict[str, Integration] integrations) |
| dict[str, Any] | _load_icons_file (pathlib.Path icons_file) |
| dict[str, dict[str, Any]] | _load_icons_files (dict[str, pathlib.Path] icons_files) |
| dict[str, Any] | async_get_icons (HomeAssistant hass, str category, Iterable[str]|None integrations=None) |
| dict[str, str|dict[str, str]] | convert_shorthand_service_icon (str|dict[str, str|dict[str, str]] value) |
| str | icon_for_battery_level (int|None battery_level=None, bool charging=False) |
| str | icon_for_signal_level (int|None signal_level=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
Icon helper methods.
|
private |
|
private |
|
private |
| dict[str, Any] homeassistant.helpers.icon.async_get_icons | ( | HomeAssistant | hass, |
| str | category, | ||
| Iterable[str] | None | integrations = None |
||
| ) |
| dict[str, str | dict[str, str]] homeassistant.helpers.icon.convert_shorthand_service_icon | ( | str | dict[str, str | dict[str, str]] | value | ) |
| str homeassistant.helpers.icon.icon_for_battery_level | ( | int | None | battery_level = None, |
| bool | charging = False |
||
| ) |
| str homeassistant.helpers.icon.icon_for_signal_level | ( | int | None | signal_level = None | ) |