Skip to content

Commit

Permalink
Stability improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Feb 25, 2020
1 parent 11b4e42 commit 8e448f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/favicon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def new_render(*args, **kwargs):

if title or "favicon" in icons or "apple" in icons:
homeassistant.components.frontend.IndexView.get_template = _get_template
for view in hass.http.app.router.resources():
if isinstance(view, homeassistant.components.frontend.IndexView):
view._template_cache = None

homeassistant.components.frontend.MANIFEST_JSON["icons"] = data["manifest_icons"].copy()
if "manifest" in icons:
Expand Down

0 comments on commit 8e448f5

Please sign in to comment.