Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: remuslazar/homeassistant-carwings
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.0
Choose a base ref
...
head repository: remuslazar/homeassistant-carwings
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 17 commits
  • 5 files changed
  • 2 contributors

Commits on Oct 19, 2024

  1. Bump pycarwings to 0.7.8

    remuslazar committed Oct 19, 2024
    Copy the full SHA
    db13e55 View commit details
  2. Merge pull request #57 from remuslazar/update-carwings

    Bump pycarwings to 0.7.8
    remuslazar authored Oct 19, 2024
    Copy the full SHA
    6b06e8d View commit details
  3. Handle 0% SOC Gracefully

    0% SOC is not a valid value so map this to None
    remuslazar committed Oct 19, 2024
    Copy the full SHA
    e15fb7a View commit details
  4. Merge pull request #58 from remuslazar/handle-0-soc

    Handle 0% SOC Gracefully
    remuslazar authored Oct 19, 2024
    Copy the full SHA
    de0d879 View commit details
  5. Bump version to 0.3.1

    remuslazar committed Oct 19, 2024
    Copy the full SHA
    7915a86 View commit details
  6. Bump version to 0.4.1

    remuslazar committed Oct 19, 2024
    Copy the full SHA
    24caf32 View commit details

Commits on Oct 28, 2024

  1. chore(deps): bump actions/setup-python from 5.2.0 to 5.3.0

    Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0.
    - [Release notes](https://github.com/actions/setup-python/releases)
    - [Commits](actions/setup-python@v5.2.0...v5.3.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-python
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Oct 28, 2024
    Copy the full SHA
    cd55b75 View commit details

Commits on Nov 4, 2024

  1. chore(deps): bump colorlog from 6.8.2 to 6.9.0

    Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 6.8.2 to 6.9.0.
    - [Release notes](https://github.com/borntyping/python-colorlog/releases)
    - [Commits](borntyping/python-colorlog@v6.8.2...v6.9.0)
    
    ---
    updated-dependencies:
    - dependency-name: colorlog
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Nov 4, 2024
    Copy the full SHA
    77fa3b0 View commit details

Commits on Jan 13, 2025

  1. chore(deps): bump ruff from 0.6.9 to 0.9.1

    Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.9 to 0.9.1.
    - [Release notes](https://github.com/astral-sh/ruff/releases)
    - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
    - [Commits](astral-sh/ruff@0.6.9...0.9.1)
    
    ---
    updated-dependencies:
    - dependency-name: ruff
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Jan 13, 2025
    Copy the full SHA
    830f8c0 View commit details
  2. chore(deps): bump softprops/action-gh-release from 2.0.8 to 2.2.1

    Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.8 to 2.2.1.
    - [Release notes](https://github.com/softprops/action-gh-release/releases)
    - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
    - [Commits](softprops/action-gh-release@v2.0.8...v2.2.1)
    
    ---
    updated-dependencies:
    - dependency-name: softprops/action-gh-release
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Jan 13, 2025
    Copy the full SHA
    62bd72f View commit details

Commits on Jan 17, 2025

  1. Merge pull request #78 from remuslazar/dependabot/github_actions/soft…

    …props/action-gh-release-2.2.1
    
    chore(deps): bump softprops/action-gh-release from 2.0.8 to 2.2.1
    remuslazar authored Jan 17, 2025
    Copy the full SHA
    90ff6fa View commit details
  2. Merge pull request #60 from remuslazar/dependabot/github_actions/acti…

    …ons/setup-python-5.3.0
    
    chore(deps): bump actions/setup-python from 5.2.0 to 5.3.0
    remuslazar authored Jan 17, 2025
    Copy the full SHA
    7c0c3cf View commit details
  3. Merge pull request #64 from remuslazar/dependabot/pip/colorlog-6.9.0

    chore(deps): bump colorlog from 6.8.2 to 6.9.0
    remuslazar authored Jan 17, 2025
    Copy the full SHA
    8aaf69f View commit details
  4. Merge pull request #77 from remuslazar/dependabot/pip/ruff-0.9.1

    chore(deps): bump ruff from 0.6.9 to 0.9.1
    remuslazar authored Jan 17, 2025
    Copy the full SHA
    e926ca3 View commit details
  5. Update pycarwings3 requirement to version 0.7.12

    remuslazar committed Jan 17, 2025
    Copy the full SHA
    d9a8c83 View commit details
  6. Merge pull request #82 from remuslazar/bump-pycarwings

    Fix carwings error INVALID PARAMS: 404 Error
    remuslazar authored Jan 17, 2025
    Copy the full SHA
    a59f12a View commit details
  7. Bump version to 0.4.2

    remuslazar committed Jan 17, 2025
    Copy the full SHA
    373580f View commit details
Showing with 13 additions and 6 deletions.
  1. +1 −1 .github/workflows/lint.yml
  2. +1 −1 .github/workflows/release.yml
  3. +2 −2 custom_components/nissan_carwings/manifest.json
  4. +7 −0 custom_components/nissan_carwings/sensor.py
  5. +2 −2 requirements.txt
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
uses: "actions/checkout@v4.1.7"

- name: "Set up Python"
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
with:
python-version: "3.12"
cache: "pip"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -24,6 +24,6 @@ jobs:
zip nissan_carwings.zip -r ./
- name: "Upload the ZIP file to the release"
uses: "softprops/action-gh-release@v2.0.8"
uses: "softprops/action-gh-release@v2.2.1"
with:
files: ${{ github.workspace }}/custom_components/nissan_carwings/nissan_carwings.zip
4 changes: 2 additions & 2 deletions custom_components/nissan_carwings/manifest.json
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/remuslazar/homeassistant-carwings/issues",
"requirements": [
"pycarwings3~=0.7.7"
"pycarwings3~=0.7.12"
],
"single_config_entry": true,
"version": "0.3.0"
"version": "0.4.2"
}
7 changes: 7 additions & 0 deletions custom_components/nissan_carwings/sensor.py
Original file line number Diff line number Diff line change
@@ -78,6 +78,10 @@ def native_value(self) -> str | None:
if self.coordinator.data[DATA_BATTERY_STATUS_KEY] is None:
return None

# 0% SOC is not a valid value
if self.coordinator.data[DATA_BATTERY_STATUS_KEY].battery_percent == 0:
return None

return round(self.coordinator.data[DATA_BATTERY_STATUS_KEY].battery_percent)

@property
@@ -124,6 +128,9 @@ def native_value(self) -> float | None:
else:
ret = data.cruising_range_ac_off_km

if ret is None:
return None

if self.hass.config.units is US_CUSTOMARY_SYSTEM:
ret = DistanceConverter.convert(ret, UnitOfLength.KILOMETERS, UnitOfLength.MILES)

4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colorlog==6.8.2
colorlog==6.9.0
homeassistant==2024.8.2
pip>=21.3.1
ruff==0.6.9
ruff==0.9.1