Import Generator from typing_extensions (1) (#118986)
This commit is contained in:
parent
69708db8e0
commit
fe21e2b8ba
34 changed files with 134 additions and 118 deletions
|
@ -2,11 +2,11 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Generator
|
||||
import contextlib
|
||||
import logging
|
||||
|
||||
from pywemo.exceptions import ActionException
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.helpers.device_registry import DeviceInfo
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
@ -65,7 +65,7 @@ class WemoEntity(CoordinatorEntity[DeviceCoordinator]):
|
|||
return self._device_info
|
||||
|
||||
@contextlib.contextmanager
|
||||
def _wemo_call_wrapper(self, message: str) -> Generator[None, None, None]:
|
||||
def _wemo_call_wrapper(self, message: str) -> Generator[None]:
|
||||
"""Wrap calls to the device that change its state.
|
||||
|
||||
1. Takes care of making available=False when communications with the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue