Skip to content

Commit

Permalink
Fix deprecated hass.helpers #1434
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Sep 7, 2024
1 parent 3b5d4c6 commit 8363fb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/sonoff/system_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from homeassistant.components import system_health
from homeassistant.components.http import HomeAssistantView
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.system_info import async_get_system_info

from .core import xutils
from .core.const import DOMAIN, PRIVATE_KEYS
Expand Down Expand Up @@ -63,7 +64,7 @@ async def setup_debug(hass: HomeAssistant, logger: Logger):
source_hash = await hass.async_add_executor_job(xutils.source_hash)

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

Expand Down

0 comments on commit 8363fb1

Please sign in to comment.