Suppress mypy checks for incorrect typing in overkiz (#70811)

pull/70576/head^2
J. Nick Koston 2022-04-26 08:04:32 -10:00 committed by GitHub
parent 3d70031d02
commit 853b57e7cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
"""Class for helpers and communication with the OverKiz API."""
from __future__ import annotations
from typing import Any
from typing import Any, cast
from urllib.parse import urlparse
from pyoverkiz.enums import OverkizCommand, Protocol
@ -113,7 +113,9 @@ class OverkizExecutor:
return True
# Retrieve executions initiated outside Home Assistant via API
executions = await self.coordinator.client.get_current_executions()
executions = cast(Any, await self.coordinator.client.get_current_executions())
# executions.action_group is typed incorrectly in the upstream library
# or the below code is incorrect.
exec_id = next(
(
execution.id