Type check various base components (#25878)

* Type check various component base classes, disabling bunch of checks for now

* Type hint fixes

* Help mypy out some

* Add more type hints
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2019-08-11 20:38:18 -07:00
1 parent cf90e49b50
commit b738082dad
59 files changed
+233 -34

No files matched your search

+10 -10
View File
@@ -22,6 +22,8 @@ from homeassistant.loader import bind_hass
from .storage import async_setup_frontend_storage
# mypy: allow-incomplete-defs, allow-untyped-defs, no-check-untyped-defs
# Fix mimetypes for borked Windows machines
# https://github.com/home-assistant/home-assistant-polymer/issues/3336
mimetypes.add_type("text/css", ".css")
@@ -45,7 +47,14 @@ MANIFEST_JSON = {
"description": "Home automation platform that puts local control and privacy first.",
"dir": "ltr",
"display": "standalone",
"icons": [],
"icons": [
{
"src": "/static/icons/favicon-{size}x{size}.png".format(size=size),
"sizes": "{size}x{size}".format(size=size),
"type": "image/png",
}
for size in (192, 384, 512, 1024)
],
"lang": "en-US",
"name": "Home Assistant",
"short_name": "Assistant",
@@ -53,15 +62,6 @@ MANIFEST_JSON = {
"theme_color": DEFAULT_THEME_COLOR,
}
for size in (192, 384, 512, 1024):
MANIFEST_JSON["icons"].append(
{
"src": "/static/icons/favicon-{size}x{size}.png".format(size=size),
"sizes": "{size}x{size}".format(size=size),
"type": "image/png",
}
)
DATA_PANELS = "frontend_panels"
DATA_JS_VERSION = "frontend_js_version"
DATA_EXTRA_HTML_URL = "frontend_extra_html_url"