Skip to content

Commit 2066074

Browse files
Update to Python 3.14.2
1 parent b44de27 commit 2066074

6 files changed

Lines changed: 1051 additions & 1071 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This is an `integration_type: "helper"` (not a device integration):
111111
## Dependency Management
112112

113113
- **Package manager**: `uv` (not pip/poetry)
114-
- Python version: Locked to `==3.13.2` in `pyproject.toml`
114+
- Python version: Locked to `==3.14.2` in `pyproject.toml`
115115
- HA version: Currently `homeassistant==2026.1.0` (update for new HA releases)
116116
- **All deps in `[dependency-groups]` dev section** - no production deps
117117

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.2
1+
3.14.2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/astral-sh/uv:trixie-slim
1+
FROM ghcr.io/astral-sh/uv:trixie
22

33
# Install required packages
44
RUN apt-get update && apt-get install -y \

pyproject.toml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ classifiers = [
1212
"Framework :: AsyncIO",
1313
"Intended Audience :: Developers",
1414
"Natural Language :: English",
15-
"Programming Language :: Python :: 3.13",
15+
"Programming Language :: Python :: 3.14",
1616
"Programming Language :: Python :: 3",
1717
]
18-
requires-python = "==3.13.2"
18+
requires-python = "==3.14.2"
1919
dependencies = [] # Use dev for all dependencies
2020

2121
[project.urls]
@@ -27,14 +27,27 @@ Changelog = "https://github.com/andrew-codechimp/HA-Wasp-In-A-Box/releases"
2727

2828
[dependency-groups]
2929
dev = [
30-
"aiodns<4.0.0",
30+
"aiodns",
3131
"colorlog",
32-
"homeassistant==2026.1.0",
32+
"homeassistant==2026.3.3",
3333
"mypy",
34-
"pycares<5.0.0",
34+
"pycares",
3535
"pygments",
3636
"pytest-homeassistant-custom-component",
3737
"ruff",
38+
"hassil",
39+
"home_assistant_intents",
40+
"mutagen",
41+
"pymicro_vad",
42+
"pyspeex_noise",
43+
"PyTurboJPEG",
44+
"aiodhcpwatcher",
45+
"aiousbwatcher",
46+
"async-upnp-client",
47+
"go2rtc-client",
48+
"ha-ffmpeg",
49+
"paho-mqtt",
50+
"av",
3851
]
3952

4053
[tool.uv]
@@ -123,7 +136,7 @@ voluptuous = "vol"
123136
# Specify the target platform details in config, so your developers are
124137
# free to run mypy on Windows, Linux, or macOS and get consistent
125138
# results.
126-
python_version = "3.13"
139+
python_version = "3.14"
127140
platform = "linux"
128141

129142
# show error messages from unrelated files

scripts/develop

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,23 @@ if [[ ! -d "${PWD}/config" ]]; then
99
uv run hass --config "${PWD}/config" --script ensure_config
1010
fi
1111

12-
# Set the path to custom_components
13-
## This let's us have the structure we want <root>/custom_components/integration_battery_types
14-
## while at the same time have Home Assistant configuration inside <root>/config
15-
## without resulting to symlinks.
16-
export PYTHONPATH="${PYTHONPATH:-}:${PWD}/custom_components"
12+
# Home Assistant discovers custom integrations from <config>/custom_components.
13+
# Keep a symlink to avoid duplicating source files.
14+
mkdir -p "${PWD}/config/custom_components"
15+
touch "${PWD}/config/custom_components/__init__.py"
1716

17+
SOURCE_INTEGRATION_DIR="${PWD}/custom_components/wasp_in_a_box"
18+
CONFIG_INTEGRATION_DIR="${PWD}/config/custom_components/wasp_in_a_box"
19+
20+
if [[ ! -d "${SOURCE_INTEGRATION_DIR}" ]]; then
21+
echo "Missing source integration directory: ${SOURCE_INTEGRATION_DIR}" >&2
22+
exit 1
23+
fi
24+
25+
if [[ -L "${CONFIG_INTEGRATION_DIR}" || -e "${CONFIG_INTEGRATION_DIR}" ]]; then
26+
rm -rf "${CONFIG_INTEGRATION_DIR}"
27+
fi
28+
29+
ln -s "${SOURCE_INTEGRATION_DIR}" "${CONFIG_INTEGRATION_DIR}"
1830
# Start Home Assistant
1931
uv run hass --config "${PWD}/config" --debug

0 commit comments

Comments
 (0)