diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b9b659b..b69ad74 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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 diff --git a/.github/workflows/pythonpackage.yaml b/.github/workflows/pythonpackage.yaml index 15465be..a5fec4f 100644 --- a/.github/workflows/pythonpackage.yaml +++ b/.github/workflows/pythonpackage.yaml @@ -8,7 +8,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.10"] + python-version: ["3.11"] steps: - uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 864e01c..21fa6ff 100644 --- a/.gitignore +++ b/.gitignore @@ -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* diff --git a/README.md b/README.md index 82d6877..bda2646 100644 --- a/README.md +++ b/README.md @@ -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)). @@ -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: diff --git a/hacs.json b/hacs.json index 79a8fe9..793e53d 100644 --- a/hacs.json +++ b/hacs.json @@ -1,4 +1,4 @@ { "name": "Ferroamp Sensors", - "homeassistant": "2022.12.0b0" + "homeassistant": "2023.7.0" } diff --git a/requirements.dev.txt b/requirements.dev.txt index 909098c..ef98fdd 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -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 diff --git a/requirements.test.txt b/requirements.test.txt index 1e6ab99..49bc9df 100644 --- a/requirements.test.txt +++ b/requirements.test.txt @@ -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