From 283f8f466fd08521c1b2c712729da4046da11f92 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 18 Dec 2023 19:31:37 +0100 Subject: [PATCH] Add Raspberry Pi 5 to version and hardware integration (#105992) --- homeassistant/components/hassio/__init__.py | 1 + homeassistant/components/raspberry_pi/hardware.py | 2 ++ homeassistant/components/version/const.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/homeassistant/components/hassio/__init__.py b/homeassistant/components/hassio/__init__.py index e7ab7aac3c8..3dd9b11ae64 100644 --- a/homeassistant/components/hassio/__init__.py +++ b/homeassistant/components/hassio/__init__.py @@ -270,6 +270,7 @@ HARDWARE_INTEGRATIONS = { "rpi3-64": "raspberry_pi", "rpi4": "raspberry_pi", "rpi4-64": "raspberry_pi", + "rpi5-64": "raspberry_pi", "yellow": "homeassistant_yellow", } diff --git a/homeassistant/components/raspberry_pi/hardware.py b/homeassistant/components/raspberry_pi/hardware.py index e90316ccb3c..2141ff6034d 100644 --- a/homeassistant/components/raspberry_pi/hardware.py +++ b/homeassistant/components/raspberry_pi/hardware.py @@ -17,6 +17,7 @@ BOARD_NAMES = { "rpi3-64": "Raspberry Pi 3", "rpi4": "Raspberry Pi 4 (32-bit)", "rpi4-64": "Raspberry Pi 4", + "rpi5-64": "Raspberry Pi 5", } MODELS = { @@ -28,6 +29,7 @@ MODELS = { "rpi3-64": "3", "rpi4": "4", "rpi4-64": "4", + "rpi5-64": "5", } diff --git a/homeassistant/components/version/const.py b/homeassistant/components/version/const.py index 2dcb0028b27..0b39ecee604 100644 --- a/homeassistant/components/version/const.py +++ b/homeassistant/components/version/const.py @@ -66,6 +66,7 @@ BOARD_MAP: Final[dict[str, str]] = { "RaspberryPi 3 64bit": "rpi3-64", "RaspberryPi 4": "rpi4", "RaspberryPi 4 64bit": "rpi4-64", + "RaspberryPi 5": "rpi5-64", "ASUS Tinkerboard": "tinker", "ODROID C2": "odroid-c2", "ODROID C4": "odroid-c4", @@ -112,6 +113,7 @@ VALID_IMAGES: Final = [ "raspberrypi3", "raspberrypi4-64", "raspberrypi4", + "raspberrypi5-64", "tinker", ]