From 7f534c9466dee5268a11325ece094f854866989f Mon Sep 17 00:00:00 2001 From: joshs85 Date: Wed, 23 Oct 2024 19:29:10 -0400 Subject: [PATCH] Fixing bug --- .github/workflows/build.yaml | 4 ++-- CHANGELOG.md | 4 ++++ addon/CHANGELOG.md | 4 ++++ addon/config.yaml | 2 +- src/home_assistant.rs | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 84f7ec1..6fa718f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,10 +3,10 @@ name: Build on: push: branches: - - master + - mainline pull_request: branches: - - master + - mainline jobs: clippy: diff --git a/CHANGELOG.md b/CHANGELOG.md index 23e3996..334f35e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * Add ReadInput4 with EG4 18k generator data (#239, @pmccut) +# 0.14.0 - 23th October 2024 + +* Fixed bug with entity in HA. Changed KWh to kWh + # 0.13.0 - 27th October 2023 * **BREAKING CHANGE**: Simplify scheduler.timesync configuration to appease HA (#209) diff --git a/addon/CHANGELOG.md b/addon/CHANGELOG.md index fa3f582..a8a35d5 100644 --- a/addon/CHANGELOG.md +++ b/addon/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.14.0 - 28th October 2024 + +* Fixed bug with entity in HA. Changed KWh to kWh + # 0.13.0 - 27th October 2023 * **BREAKING CHANGE**: Simplify scheduler.timesync configuration to appease HA (#209) diff --git a/addon/config.yaml b/addon/config.yaml index e3d9ef0..dc8c1bf 100644 --- a/addon/config.yaml +++ b/addon/config.yaml @@ -1,5 +1,5 @@ name: lxp-bridge -version: v0.13.0 +version: v0.14.0 slug: lxp-bridge description: Allows local communication with Luxpower inverters and bridges it to MQTT arch: diff --git a/src/home_assistant.rs b/src/home_assistant.rs index 6c49e8f..36185ee 100644 --- a/src/home_assistant.rs +++ b/src/home_assistant.rs @@ -195,7 +195,7 @@ impl Config { let energy_storage = Entity { device_class: Some("energy_storage"), state_class: Some("measurement"), - unit_of_measurement: Some("KWh"), + unit_of_measurement: Some("kWh"), ..base.clone() };