Add Hardkernel ODROID-M1 (#89431)
* Add Hardkernel ODROID-M1 Add Hardkernel ODROID-M1 machine. ODROID-M1 is a Rockchip RK3568B2 SoC based single board computer with 4xCortex-A55, NVMe support and up to 8GB of RAM. * Update homeassistant/components/hardkernel/hardware.py Co-authored-by: Franck Nijhof <frenck@frenck.nl> * Fix tests Co-authored-by: Franck Nijhof <frenck@frenck.nl>pull/89327/head^2
parent
dcff2f37f7
commit
f903c536fb
|
@ -232,6 +232,7 @@ jobs:
|
|||
- khadas-vim3
|
||||
- odroid-c2
|
||||
- odroid-c4
|
||||
- odroid-m1
|
||||
- odroid-n2
|
||||
- odroid-xu
|
||||
- qemuarm
|
||||
|
|
|
@ -9,10 +9,11 @@ from homeassistant.exceptions import HomeAssistantError
|
|||
from .const import DOMAIN
|
||||
|
||||
BOARD_NAMES = {
|
||||
"odroid-c2": "Hardkernel Odroid-C2",
|
||||
"odroid-c4": "Hardkernel Odroid-C4",
|
||||
"odroid-n2": "Home Assistant Blue / Hardkernel Odroid-N2",
|
||||
"odroid-xu4": "Hardkernel Odroid-XU4",
|
||||
"odroid-c2": "Hardkernel ODROID-C2",
|
||||
"odroid-c4": "Hardkernel ODROID-C4",
|
||||
"odroid-m1": "Hardkernel ODROID-M1",
|
||||
"odroid-n2": "Home Assistant Blue / Hardkernel ODROID-N2/N2+",
|
||||
"odroid-xu4": "Hardkernel ODROID-XU4",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -229,6 +229,7 @@ MAP_SERVICE_API = {
|
|||
HARDWARE_INTEGRATIONS = {
|
||||
"odroid-c2": "hardkernel",
|
||||
"odroid-c4": "hardkernel",
|
||||
"odroid-m1": "hardkernel",
|
||||
"odroid-n2": "hardkernel",
|
||||
"odroid-xu4": "hardkernel",
|
||||
"rpi2": "raspberry_pi",
|
||||
|
|
|
@ -69,6 +69,7 @@ BOARD_MAP: Final[dict[str, str]] = {
|
|||
"ASUS Tinkerboard": "tinker",
|
||||
"ODROID C2": "odroid-c2",
|
||||
"ODROID C4": "odroid-c4",
|
||||
"ODROID M1": "odroid-m1",
|
||||
"ODROID N2": "odroid-n2",
|
||||
"ODROID XU4": "odroid-xu4",
|
||||
"Generic AArch64": "generic-aarch64",
|
||||
|
@ -97,6 +98,7 @@ VALID_IMAGES: Final = [
|
|||
"generic-x86-64",
|
||||
"intel-nuc",
|
||||
"odroid-c2",
|
||||
"odroid-m1",
|
||||
"odroid-n2",
|
||||
"odroid-xu",
|
||||
"qemuarm-64",
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
ARG BUILD_VERSION
|
||||
FROM homeassistant/aarch64-homeassistant:$BUILD_VERSION
|
||||
|
||||
RUN apk --no-cache add \
|
||||
usbutils
|
|
@ -53,7 +53,7 @@ async def test_hardware_info(
|
|||
},
|
||||
"config_entries": [config_entry.entry_id],
|
||||
"dongle": None,
|
||||
"name": "Home Assistant Blue / Hardkernel Odroid-N2",
|
||||
"name": "Home Assistant Blue / Hardkernel ODROID-N2/N2+",
|
||||
"url": None,
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue