Skip to content

Commit

Permalink
Require minimum HA Core version for matter server (home-assistant#2817)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHjelmare authored Dec 29, 2022
1 parent 5d4611b commit 1b32ba9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions matter_server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.0

- Require Home Assistant Core 2023.1.0b1 to install the add-on. The chip SDK was bumped in [Matter Server 1.0.8](https://github.com/home-assistant-libs/python-matter-server/releases/tag/1.0.8).

## 1.2.0

- Bump Matter Server to 1.0.8
Expand Down
7 changes: 1 addition & 6 deletions matter_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ARG BUILD_FROM
FROM $BUILD_FROM

ARG HOME_ASSISTANT_CHIP_VERSION

# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down Expand Up @@ -41,9 +39,6 @@ ARG MATTER_SERVER_VERSION

# hadolint ignore=DL3013
RUN \
pip3 install \
home-assistant-chip-clusters==${HOME_ASSISTANT_CHIP_VERSION} \
home-assistant-chip-core==${HOME_ASSISTANT_CHIP_VERSION} \
&& pip3 install --no-cache-dir python-matter-server=="${MATTER_SERVER_VERSION}"
pip3 install --no-cache-dir "python-matter-server[server]==${MATTER_SERVER_VERSION}"

COPY rootfs /
11 changes: 11 additions & 0 deletions matter_server/RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Release documentation for developers

## Matter Server Update Procedure

When updating the server library in the add-on follow these steps:

1. Update the `MATTER_SERVER_VERSION` argument in `build.yaml`.
2. Check if the chip SDK version has changed in the server library.
3. If the chip SDK version has changed, set the `homeassistant` key in `config.yaml` to the minimum version of Home Assistant Core required to install or update the add-on. Home Assistant Core needs to have the exact same version of the chip SDK as the server.
4. Update the add-on version in `config.yaml`. Bump to a new major version if the chip SDK version was changed.
5. Update the changelog in `CHANGELOG.md`. Include a markdown link to the GitHub release of the server in the changelog.
1 change: 0 additions & 1 deletion matter_server/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ build_from:
amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
args:
MATTER_SERVER_VERSION: 1.0.8
HOME_ASSISTANT_CHIP_VERSION: 2022.12.0
3 changes: 2 additions & 1 deletion matter_server/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.2.0
version: 2.0.0
slug: matter_server
name: Matter Server
description: Matter WebSocket Server for Home Assistant Matter support.
Expand All @@ -11,6 +11,7 @@ arch:
discovery:
- matter
hassio_api: true
homeassistant: 2023.1.0b1
# IPC is only used within the Add-on
host_ipc: false
host_network: true
Expand Down

0 comments on commit 1b32ba9

Please sign in to comment.