1 """The Raspberry Pi integration."""
3 from __future__
import annotations
13 """Set up a Raspberry Pi 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(
"rpi"):
26 hass.async_create_task(hass.config_entries.async_remove(entry.entry_id))
29 await hass.config_entries.flow.async_init(
30 "rpi_power", context={
"source":
"onboarding"}
dict[str, Any]|None get_os_info(HomeAssistant hass)
bool is_hassio(HomeAssistant hass)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)