Namespaces | |
| config_flow | |
| const | |
Functions | |
| tuple | _get_color (file_handler) |
| def | _get_file (file_path) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) | |
| SERVICE_SCHEMA | |
Module for color_extractor (RGB extraction from images) component.
|
private |
Given an image file, extract the predominant color from it.
Definition at line 51 of file __init__.py.
|
private |
Get a PIL acceptable input file reference. Allows us to mock patch during testing to make BytesIO stream.
Definition at line 43 of file __init__.py.
| bool homeassistant.components.color_extractor.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the Color extractor component.
Definition at line 63 of file __init__.py.
| bool homeassistant.components.color_extractor.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Load a config entry.
Definition at line 159 of file __init__.py.
|
private |
Definition at line 26 of file __init__.py.
| homeassistant.components.color_extractor.CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False) |
Definition at line 28 of file __init__.py.
| homeassistant.components.color_extractor.SERVICE_SCHEMA |
Definition at line 31 of file __init__.py.