Skip to content

Commit b04cb5b

Browse files
authored
Merge pull request #177 from bretterer/fix-update
Fix when latest hash is empty on update entity
2 parents 37e3332 + fcb4730 commit b04cb5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/rivian/update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def _update_version_info(self) -> None:
7373
if (latest_version := self._get_value("otaAvailableVersion")) == "0.0.0":
7474
latest_version = current_version
7575
current_hash = self._get_value("otaCurrentVersionGitHash")
76-
latest_hash = self._get_value("otaAvailableVersionGitHash")
76+
if (latest_hash := self._get_value("otaAvailableVersionGitHash")) == "":
77+
latest_hash = current_hash
7778
show_hash = (current_version, current_hash) != (latest_version, latest_hash)
7879

7980
self._attr_installed_version = current_version + (

0 commit comments

Comments
 (0)