1 """The Hardkernel integration."""
3 from __future__
import annotations
13 """Set up a Hardkernel config entry."""
16 hass.async_create_task(hass.config_entries.async_remove(entry.entry_id))
21 raise ConfigEntryNotReady
24 if (board := os_info.get(
"board"))
is None or not board.startswith(
"odroid"):
26 hass.async_create_task(hass.config_entries.async_remove(entry.entry_id))
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
dict[str, Any]|None get_os_info(HomeAssistant hass)
bool is_hassio(HomeAssistant hass)