Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f903c53

Browse files
agnersfrenck
andauthored
Add Hardkernel ODROID-M1 (home-assistant#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>
1 parent dcff2f3 commit f903c53

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

‎.github/workflows/builder.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ jobs:
232232
- khadas-vim3
233233
- odroid-c2
234234
- odroid-c4
235+
- odroid-m1
235236
- odroid-n2
236237
- odroid-xu
237238
- qemuarm

‎homeassistant/components/hardkernel/hardware.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
from .const import DOMAIN
1010

1111
BOARD_NAMES = {
12-
"odroid-c2": "Hardkernel Odroid-C2",
13-
"odroid-c4": "Hardkernel Odroid-C4",
14-
"odroid-n2": "Home Assistant Blue / Hardkernel Odroid-N2",
15-
"odroid-xu4": "Hardkernel Odroid-XU4",
12+
"odroid-c2": "Hardkernel ODROID-C2",
13+
"odroid-c4": "Hardkernel ODROID-C4",
14+
"odroid-m1": "Hardkernel ODROID-M1",
15+
"odroid-n2": "Home Assistant Blue / Hardkernel ODROID-N2/N2+",
16+
"odroid-xu4": "Hardkernel ODROID-XU4",
1617
}
1718

1819

‎homeassistant/components/hassio/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ class APIEndpointSettings(NamedTuple):
229229
HARDWARE_INTEGRATIONS = {
230230
"odroid-c2": "hardkernel",
231231
"odroid-c4": "hardkernel",
232+
"odroid-m1": "hardkernel",
232233
"odroid-n2": "hardkernel",
233234
"odroid-xu4": "hardkernel",
234235
"rpi2": "raspberry_pi",

‎homeassistant/components/version/const.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"ASUS Tinkerboard": "tinker",
7070
"ODROID C2": "odroid-c2",
7171
"ODROID C4": "odroid-c4",
72+
"ODROID M1": "odroid-m1",
7273
"ODROID N2": "odroid-n2",
7374
"ODROID XU4": "odroid-xu4",
7475
"Generic AArch64": "generic-aarch64",
@@ -97,6 +98,7 @@
9798
"generic-x86-64",
9899
"intel-nuc",
99100
"odroid-c2",
101+
"odroid-m1",
100102
"odroid-n2",
101103
"odroid-xu",
102104
"qemuarm-64",

‎machine/odroid-m1‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ARG BUILD_VERSION
2+
FROM homeassistant/aarch64-homeassistant:$BUILD_VERSION
3+
4+
RUN apk --no-cache add \
5+
usbutils

‎tests/components/hardkernel/test_hardware.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def test_hardware_info(
5353
},
5454
"config_entries": [config_entry.entry_id],
5555
"dongle": None,
56-
"name": "Home Assistant Blue / Hardkernel Odroid-N2",
56+
"name": "Home Assistant Blue / Hardkernel ODROID-N2/N2+",
5757
"url": None,
5858
}
5959
]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /