File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
homeassistant/components/logbook Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 5
5
from collections .abc import Callable
6
6
from datetime import timedelta
7
7
from http import HTTPStatus
8
- from typing import Any , cast
8
+ from typing import Any
9
9
10
10
from aiohttp import web
11
11
import voluptuous as vol
@@ -109,13 +109,6 @@ async def get(
109
109
110
110
def json_events () -> web .Response :
111
111
"""Fetch events and generate JSON."""
112
- return self .json (
113
- event_processor .get_events (
114
- start_day ,
115
- end_day ,
116
- )
117
- )
112
+ return self .json (event_processor .get_events (start_day , end_day ))
118
113
119
- return cast (
120
- web .Response , await get_instance (hass ).async_add_executor_job (json_events )
121
- )
114
+ return await get_instance (hass ).async_add_executor_job (json_events )
You can’t perform that action at this time.
0 commit comments