From 61147374345216ce27c2bc828fc2afb98f4afc08 Mon Sep 17 00:00:00 2001 From: kamiKAC Date: Sat, 19 Aug 2023 19:37:44 +0200 Subject: [PATCH 1/4] Added aarch64 architecture --- .github/workflows/leaf2mqtt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/leaf2mqtt.yml b/.github/workflows/leaf2mqtt.yml index 9acd6c3..0475443 100644 --- a/.github/workflows/leaf2mqtt.yml +++ b/.github/workflows/leaf2mqtt.yml @@ -45,7 +45,7 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/arm/v8 tags: ${{ steps.meta.outputs.tags }} update_addon: From 15db23c7064d4606eaf8e312071a720fd988002c Mon Sep 17 00:00:00 2001 From: kamiKAC Date: Sun, 3 Sep 2023 21:20:41 +0200 Subject: [PATCH 2/4] Added requestBatteryStatusRefresh() to fetchBatteryStatus() This change forces refresh of battery status when requesting battery statys --- src/leaf/nissan_connect_wrapper.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/leaf/nissan_connect_wrapper.dart b/src/leaf/nissan_connect_wrapper.dart index b5da97f..5d93457 100644 --- a/src/leaf/nissan_connect_wrapper.dart +++ b/src/leaf/nissan_connect_wrapper.dart @@ -66,6 +66,8 @@ class NissanConnectVehicleWrapper extends VehicleInternal { @override Future> fetchBatteryStatus() async { + await _getVehicle().requestBatteryStatusRefresh(); + final NissanConnectBattery battery = await _getVehicle().requestBatteryStatus(); final int percentage = From e93bca5a79c46ce677fe3ff596a793ab17d09fd6 Mon Sep 17 00:00:00 2001 From: kamiKAC Date: Sun, 3 Sep 2023 21:35:19 +0200 Subject: [PATCH 3/4] use DOCKERHUBUSERNAME as part of repository name --- .github/workflows/leaf2mqtt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/leaf2mqtt.yml b/.github/workflows/leaf2mqtt.yml index 0475443..67ced0c 100644 --- a/.github/workflows/leaf2mqtt.yml +++ b/.github/workflows/leaf2mqtt.yml @@ -35,7 +35,7 @@ jobs: id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: - images: yp87/leaf2mqtt + images: ${{ secrets.DOCKERHUBUSERNAME }}/leaf2mqtt tags: | type=raw,value=${{ github.run_number }} type=raw,value=latest From 8be70f59579b831c20b608195d41ef823d6b1507 Mon Sep 17 00:00:00 2001 From: kamiKAC Date: Sun, 3 Sep 2023 19:41:01 +0000 Subject: [PATCH 4/4] Update add-on version --- addon/config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/config.json b/addon/config.json index 12a6fa5..bedd250 100644 --- a/addon/config.json +++ b/addon/config.json @@ -1,6 +1,6 @@ { "name": "Leaf2MQTT", - "version": "46", + "version": "4", "slug": "leaf2mqtt", "description": "Interact with your Nissan Leaf using MQTT", "startup": "application", @@ -38,4 +38,4 @@ "COMMAND_ATTEMPTS": "int(1,)?", "LOG_LEVEL": "list(All|Info|Warning|Severe)" } -} +} \ No newline at end of file