Skip to content

Commit

Permalink
Merge pull request #380 from henricm/ha-python-upgrade
Browse files Browse the repository at this point in the history
chore: update minimum HA version and bump python to 3.11
  • Loading branch information
argoyle authored Aug 17, 2023
2 parents 06ec696 + 0d228eb commit aa869c5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "henricm/ha-ferroamp",
"image": "mcr.microsoft.com/devcontainers/python:0-3.10-bullseye",
"image": "mcr.microsoft.com/devcontainers/python:0-3.11-bullseye",
"forwardPorts": [
8123,
5678
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ env
.mypy_cache
.coverage
.secrets
.direnv
.devcontainer/config/.HA_VERSION
.devcontainer/config/.storage
.devcontainer/config/blueprints
.devcontainer/config/home-assistant.log*
.devcontainer/config/home-assistant_v2.db*
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Ferroamp MQTT support sends updates to these topics:
* extapi/data/esm (interval 60s)

## Prerequisites
- Home assistant `2022.12.x`
- Home assistant `2023.7.x`
- Enable Ferroamp MQTT by contacting [Ferroamp Support](https://ferroamp.com/sv/kontakt/) to get the username and password for your Energy MQTT broker.
- Enable MQTT in Home assistant and set the broker to your Ferroamp Energy IP and configure it with your username and password received from Ferroamp (or setup a bridge-connection if you already have an MQTT-server, see the `Configuring Bridges`-section in the [Mosquitto documentation](https://mosquitto.org/man/mosquitto-conf-5.html)).

Expand Down Expand Up @@ -198,7 +198,7 @@ The process is straight-forward.
This repository includes devcontainer configuration for Visual Studio Code with everything you need to get started. See [instructions](.devcontainer/README.md) for more details.
#### Other IDEs
- Install python 3.9+
- Install python 3.11+
- **Recommended**: create a python [virtual environment](https://docs.python.org/3/library/venv.html) for the project.
- Install development dependencies:
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Ferroamp Sensors",
"homeassistant": "2022.12.0b0"
"homeassistant": "2023.7.0"
}
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
black==23.7.0
isort==5.12.0
flake8==6.1.0
homeassistant==2022.12.0
homeassistant==2023.7.3
pre-commit==3.3.3
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Strictly for tests
pytest-homeassistant-custom-component==0.12.29
pytest-homeassistant-custom-component==0.13.45
janus==1.0.0
# From our manifest.json for our custom component
aiohttp_cors==0.7.0
Expand Down

0 comments on commit aa869c5

Please sign in to comment.