Skip to content

Commit

Permalink
Restore template render for info (#3419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 28, 2023
1 parent f7fa3c2 commit 010f55f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions custom_components/hacs/repositories/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from ..utils.path import is_safe
from ..utils.queue_manager import QueueManager
from ..utils.store import async_remove_store
from ..utils.template import render_template
from ..utils.url import github_archive, github_release_asset
from ..utils.validate import Validate
from ..utils.version import (
Expand Down Expand Up @@ -1344,9 +1345,13 @@ async def get_documentation(
)

return (
result.decode(encoding="utf-8")
.replace("<svg", "<disabled")
.replace("</svg", "</disabled")
render_template(
self.hacs,
result.decode(encoding="utf-8")
.replace("<svg", "<disabled")
.replace("</svg", "</disabled"),
self,
)
if result
else None
)
Expand Down

0 comments on commit 010f55f

Please sign in to comment.