Skip to content

Commit

Permalink
Merge pull request #68 from thomasloven/patch-1
Browse files Browse the repository at this point in the history
Stability improvements for custom component server
  • Loading branch information
vigonotion authored Jan 15, 2021
2 parents d29a332 + cba8456 commit c8c0992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/simpleicons/custom_component_server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from aiohttp import web
from homeassistant.components.http import HomeAssistantView
import os.path
from homeassistant.util import sanitize_path

def setup_view(hass, name):
hass.http.register_view(CustomComponentServer(hass, name))
Expand All @@ -16,6 +17,7 @@ def __init__(self, hass, domain):
self.domain = domain

async def get(self, request, filename):
filename = sanitize_path(filename)
path = os.path.join(self.config_dir, 'custom_components', self.domain, filename)
filecontent = ""

Expand Down

0 comments on commit c8c0992

Please sign in to comment.