Skip to content

Commit

Permalink
fix: convert timestamp to proper semantic version
Browse files Browse the repository at this point in the history
closes #7
  • Loading branch information
alandtse committed Mar 29, 2021
1 parent 7c023b9 commit fa4a7b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/pr_custom_component/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ async def async_update_data(self, download: bool = False) -> dict:
"name": f"Custom {component_name.capitalize()} PR#{pull_number}",
"issue_tracker": str(self._pull_url),
"codeowners": [f"@{user}"],
"version": self._updated_at.replace("-", "."),
"version": self._updated_at.replace("-", ".")
.replace("T", "-T")
.replace(".0", ".")
.replace(":", ""),
}
self._component_name = component_name
component_path: str = os.path.join(
Expand Down

0 comments on commit fa4a7b9

Please sign in to comment.