We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37e3332 + fcb4730 commit b04cb5bCopy full SHA for b04cb5b
custom_components/rivian/update.py
@@ -73,7 +73,8 @@ def _update_version_info(self) -> None:
73
if (latest_version := self._get_value("otaAvailableVersion")) == "0.0.0":
74
latest_version = current_version
75
current_hash = self._get_value("otaCurrentVersionGitHash")
76
- latest_hash = self._get_value("otaAvailableVersionGitHash")
+ if (latest_hash := self._get_value("otaAvailableVersionGitHash")) == "":
77
+ latest_hash = current_hash
78
show_hash = (current_version, current_hash) != (latest_version, latest_hash)
79
80
self._attr_installed_version = current_version + (
0 commit comments