diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a2d311..567ebff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: Build on: push: branches: [main] + tags: ["v*"] pull_request: concurrency: diff --git a/CHANGELOG.md b/CHANGELOG.md index 1804350..92616a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ # Changelog -## Unreleased +## 3.0.1 -No unreleased changes. +- Build and test against the Arduino 3-compatible pioarduino ESP32 platform. +- Enable the integer overload expected by Arduino-ESP32 3 while preserving the + existing ArduinoHA public API. ## 3.0.0 diff --git a/README.md b/README.md index 7b79730..b950bc3 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Read [Getting started](docs/getting-started.md) before copying this into product ```ini lib_deps = - home-assistant-integration=https://github.com/alexhopeoconnor/arduino-home-assistant.git#v3.0.0 + home-assistant-integration=https://github.com/alexhopeoconnor/arduino-home-assistant.git#v3.0.1 ``` PlatformIO clones the Git repository and checks out the ref after `#`; that ref is a release tag, not a GitHub Release asset. Arduino IDE is supported through the included [`library.properties`](library.properties); see [Getting started](docs/getting-started.md#install-the-library). diff --git a/docs/getting-started.md b/docs/getting-started.md index f3de569..710bc69 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -11,7 +11,7 @@ ArduinoHA talks to Home Assistant over **MQTT** (TCP). You need an MQTT broker r ```ini lib_deps = - home-assistant-integration=https://github.com/alexhopeoconnor/arduino-home-assistant.git#v3.0.0 + home-assistant-integration=https://github.com/alexhopeoconnor/arduino-home-assistant.git#v3.0.1 ``` **Arduino IDE:** this fork is not indexed by Library Manager. Download the diff --git a/library.json b/library.json index ded5488..aed04b1 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "home-assistant-integration", - "version": "3.0.0", + "version": "3.0.1", "description": "Maintained Home Assistant MQTT discovery and entity integration for Arduino and ESP devices.", "keywords": [ "mqtt", diff --git a/platformio.ini b/platformio.ini index 8f41a67..fd35c73 100644 --- a/platformio.ini +++ b/platformio.ini @@ -32,7 +32,7 @@ board = d1_mini [env:esp32] extends = common -platform = espressif32@6.13.0 +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.05/platform-espressif32.zip board = esp32dev build_unflags = -std=gnu++11 build_flags = ${common.build_flags} -std=gnu++14 diff --git a/src/ArduinoHADefines.h b/src/ArduinoHADefines.h index 8f925f3..9e8cf13 100644 --- a/src/ArduinoHADefines.h +++ b/src/ArduinoHADefines.h @@ -55,7 +55,7 @@ #endif -#if defined(__SAMD21G18A__) or defined(__SAM3X8E__) +#if defined(__SAMD21G18A__) or defined(__SAM3X8E__) or (defined(ESP32) and defined(ESP_ARDUINO_VERSION_MAJOR) and ESP_ARDUINO_VERSION_MAJOR >= 3) #define ARDUINOHA_INT_OVERLOAD #endif