Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign AppInfo: Update sensor #96

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Remove description from release summary
  • Loading branch information
richibrics committed Mar 14, 2024
commit 0f425058e209dde925a59a88d6faa6ff06a557ce
5 changes: 2 additions & 3 deletions IoTuring/Entity/Deployments/AppInfo/AppInfo.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

EXTRA_ATTRIBUTE_UPDATE_ERROR = 'Check error'

NO_REMOTE_INSTALL_AVAILABLE_MSG = "<b>⚠️ Currently the Install process cannot be started from HomeAssistant. Please update it manually. ⚠️</b>"
NO_REMOTE_INSTALL_AVAILABLE_MSG = "⚠️ Currently the Install process cannot be started from HomeAssistant. Please update it manually. ⚠️</b>"

class AppInfo(Entity):
NAME = "AppInfo"
@@ -53,7 +53,6 @@ def GetUpdateInformation(self):
Returns False if no update is available
Otherwise returns the latest version (could be set as extra attribute)
"""
return "2025.1.1"
latest = ""
res = requests.get(PYPI_URL)
if res.status_code == 200:
@@ -77,7 +76,7 @@ def UpdateCommandCustomPayload(self):
"title": App.getName(),
"name": App.getName(),
"release_url": App.getUrlReleases(),
"release_summary": App.getDescription() + "<br><br>" + NO_REMOTE_INSTALL_AVAILABLE_MSG,
"release_summary": NO_REMOTE_INSTALL_AVAILABLE_MSG,
}

def versionToInt(version: str):
Loading