mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use PEP 526 type annotations, add some type hints (#26464)
* Add some more type hints to helpers.event * Change most type comments to variable types * Remove some superfluous type hints
This commit is contained in:
@@ -93,7 +93,7 @@ class GoogleAssistantView(HomeAssistantView):
|
||||
|
||||
async def post(self, request: Request) -> Response:
|
||||
"""Handle Google Assistant requests."""
|
||||
message = await request.json() # type: dict
|
||||
message: dict = await request.json()
|
||||
result = await async_handle_message(
|
||||
request.app["hass"], self.config, request["hass_user"].id, message
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user