mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Remove redundant type cast (#67317)
This commit is contained in:
parent
0e74184e4f
commit
f6be0c2b88
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user