mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Suppress mypy checks for incorrect typing in overkiz (#70811)
This commit is contained in:
parent
3d70031d02
commit
853b57e7cf
@ -1,7 +1,7 @@
|
|||||||
"""Class for helpers and communication with the OverKiz API."""
|
"""Class for helpers and communication with the OverKiz API."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any, cast
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from pyoverkiz.enums import OverkizCommand, Protocol
|
from pyoverkiz.enums import OverkizCommand, Protocol
|
||||||
@ -113,7 +113,9 @@ class OverkizExecutor:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# Retrieve executions initiated outside Home Assistant via API
|
# 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(
|
exec_id = next(
|
||||||
(
|
(
|
||||||
execution.id
|
execution.id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user