mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Remove unnecessary Supervisor info call (#143700)
This commit is contained in:
parent
3e2c54dcbd
commit
18f51abfe6
@ -407,11 +407,6 @@ class HassioDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
|
|
||||||
return new_data
|
return new_data
|
||||||
|
|
||||||
async def force_info_update_supervisor(self) -> None:
|
|
||||||
"""Force update of the supervisor info."""
|
|
||||||
self.hass.data[DATA_SUPERVISOR_INFO] = await self.hassio.get_supervisor_info()
|
|
||||||
await self.async_refresh()
|
|
||||||
|
|
||||||
async def get_changelog(self, addon_slug: str) -> str | None:
|
async def get_changelog(self, addon_slug: str) -> str | None:
|
||||||
"""Get the changelog for an add-on."""
|
"""Get the changelog for an add-on."""
|
||||||
try:
|
try:
|
||||||
|
@ -152,7 +152,7 @@ class SupervisorAddonUpdateEntity(HassioAddonEntity, UpdateEntity):
|
|||||||
await update_addon(
|
await update_addon(
|
||||||
self.hass, self._addon_slug, backup, self.title, self.installed_version
|
self.hass, self._addon_slug, backup, self.title, self.installed_version
|
||||||
)
|
)
|
||||||
await self.coordinator.force_info_update_supervisor()
|
await self.coordinator.async_refresh()
|
||||||
|
|
||||||
|
|
||||||
class SupervisorOSUpdateEntity(HassioOSEntity, UpdateEntity):
|
class SupervisorOSUpdateEntity(HassioOSEntity, UpdateEntity):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user