Remove redundant type cast (#67317)

This commit is contained in:
Marc Mueller 2022-02-27 00:23:56 +01:00 committed by GitHub
parent 0e74184e4f
commit f6be0c2b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import json
import logging import logging
import os import os
import pathlib import pathlib
from typing import Any, TypedDict, cast from typing import Any, TypedDict
from aiohttp import hdrs, web, web_urldispatcher from aiohttp import hdrs, web, web_urldispatcher
import jinja2 import jinja2
@ -313,7 +313,7 @@ def _frontend_root(dev_repo_path: str | None) -> pathlib.Path:
# pylint: disable=import-outside-toplevel # pylint: disable=import-outside-toplevel
import hass_frontend import hass_frontend
return cast(pathlib.Path, hass_frontend.where()) return hass_frontend.where()
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: