Skip to content

Commit

Permalink
Fix integration version in system health
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 10, 2024
1 parent 9fa5492 commit 08070c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/sonoff/system_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from homeassistant.components.http import HomeAssistantView
from homeassistant.core import HomeAssistant, callback

from .core.const import DOMAIN, PRIVATE_KEYS, source_hash
from .core.const import DOMAIN, PRIVATE_KEYS
from .core import xutils


@callback
Expand Down Expand Up @@ -41,7 +42,7 @@ async def system_health_info(hass: HomeAssistant):

integration = hass.data["integrations"][DOMAIN]
info = {
"version": f"{integration.version} ({source_hash()})",
"version": f"{integration.version} ({xutils.source_hash()})",
"cloud_online": f"{cloud_online} / {cloud_total}",
"local_online": f"{local_online} / {local_total}",
}
Expand All @@ -58,7 +59,7 @@ async def setup_debug(hass: HomeAssistant, logger: Logger):

integration = hass.data["integrations"][DOMAIN]
info = await hass.helpers.system_info.async_get_system_info()
info[DOMAIN + "_version"] = f"{integration.version} ({source_hash()})"
info[DOMAIN + "_version"] = f"{integration.version} ({xutils.source_hash()})"
logger.debug(f"SysInfo: {info}")

integration.manifest["issue_tracker"] = view.url
Expand Down

0 comments on commit 08070c3

Please sign in to comment.