Fix mimetypes on borked Windows machines (#25018)

pull/25033/head
Paulus Schoutsen 2019-07-08 13:16:22 -07:00 committed by GitHub
parent 0b7a901c81
commit b11171aaeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
"""Handle the frontend for Home Assistant."""
import json
import logging
import mimetypes
import os
import pathlib
@ -20,6 +21,13 @@ from homeassistant.loader import bind_hass
from .storage import async_setup_frontend_storage
# Fix mimetypes for borked Windows machines
# https://github.com/home-assistant/home-assistant-polymer/issues/3336
mimetypes.add_type("text/css", ".css")
mimetypes.add_type("application/javascript", ".js")
DOMAIN = 'frontend'
CONF_THEMES = 'themes'
CONF_EXTRA_HTML_URL = 'extra_html_url'