diff --git a/.github/workflows/leaf2mqtt.yml b/.github/workflows/leaf2mqtt.yml index 9acd6c3..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 @@ -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: 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 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 =