mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Add Raspberry Pi 5 (#4757)
This commit is contained in:
parent
5cfb45c668
commit
a0429179a0
@ -148,6 +148,7 @@ RE_MACHINE = re.compile(
|
|||||||
r"|raspberrypi3"
|
r"|raspberrypi3"
|
||||||
r"|raspberrypi4-64"
|
r"|raspberrypi4-64"
|
||||||
r"|raspberrypi4"
|
r"|raspberrypi4"
|
||||||
|
r"|raspberrypi5-64"
|
||||||
r"|yellow"
|
r"|yellow"
|
||||||
r"|green"
|
r"|green"
|
||||||
r"|tinker"
|
r"|tinker"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"raspberrypi3-64": ["aarch64", "armv7", "armhf"],
|
"raspberrypi3-64": ["aarch64", "armv7", "armhf"],
|
||||||
"raspberrypi4": ["armv7", "armhf"],
|
"raspberrypi4": ["armv7", "armhf"],
|
||||||
"raspberrypi4-64": ["aarch64", "armv7", "armhf"],
|
"raspberrypi4-64": ["aarch64", "armv7", "armhf"],
|
||||||
|
"raspberrypi5-64": ["aarch64", "armv7", "armhf"],
|
||||||
"yellow": ["aarch64", "armv7", "armhf"],
|
"yellow": ["aarch64", "armv7", "armhf"],
|
||||||
"green": ["aarch64", "armv7", "armhf"],
|
"green": ["aarch64", "armv7", "armhf"],
|
||||||
"tinker": ["armv7", "armhf"],
|
"tinker": ["armv7", "armhf"],
|
||||||
|
@ -176,6 +176,7 @@ def test_valid_machine():
|
|||||||
"raspberrypi3",
|
"raspberrypi3",
|
||||||
"raspberrypi4-64",
|
"raspberrypi4-64",
|
||||||
"raspberrypi4",
|
"raspberrypi4",
|
||||||
|
"raspberrypi5-64",
|
||||||
"tinker",
|
"tinker",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -196,6 +197,7 @@ def test_valid_machine():
|
|||||||
"!raspberrypi3",
|
"!raspberrypi3",
|
||||||
"!raspberrypi4-64",
|
"!raspberrypi4-64",
|
||||||
"!raspberrypi4",
|
"!raspberrypi4",
|
||||||
|
"!raspberrypi5-64",
|
||||||
"!tinker",
|
"!tinker",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -211,6 +213,7 @@ def test_valid_machine():
|
|||||||
"raspberrypi",
|
"raspberrypi",
|
||||||
"raspberrypi4-64",
|
"raspberrypi4-64",
|
||||||
"raspberrypi4",
|
"raspberrypi4",
|
||||||
|
"raspberrypi5-64",
|
||||||
"!tinker",
|
"!tinker",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -103,6 +103,16 @@ async def test_raspberrypi4_64_arch(coresys, sys_machine, sys_supervisor):
|
|||||||
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
||||||
|
|
||||||
|
|
||||||
|
async def test_raspberrypi5_64_arch(coresys, sys_machine, sys_supervisor):
|
||||||
|
"""Test arch for raspberrypi5_64."""
|
||||||
|
sys_machine.return_value = "raspberrypi5-64"
|
||||||
|
sys_supervisor.arch = "aarch64"
|
||||||
|
await coresys.arch.load()
|
||||||
|
|
||||||
|
assert coresys.arch.default == "aarch64"
|
||||||
|
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
|
||||||
|
|
||||||
|
|
||||||
async def test_yellow_arch(coresys, sys_machine, sys_supervisor):
|
async def test_yellow_arch(coresys, sys_machine, sys_supervisor):
|
||||||
"""Test arch for yellow."""
|
"""Test arch for yellow."""
|
||||||
sys_machine.return_value = "yellow"
|
sys_machine.return_value = "yellow"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user