Update typing 15 (#48079)
This commit is contained in:
parent
dcca29ef68
commit
54d1e9985f
35 changed files with 190 additions and 166 deletions
|
@ -1,5 +1,7 @@
|
|||
"""Tests for the TP-Link component."""
|
||||
from typing import Any, Dict
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from pyHS100 import SmartBulb, SmartDevice, SmartDeviceException, SmartPlug
|
||||
|
@ -88,25 +90,20 @@ class UnknownSmartDevice(SmartDevice):
|
|||
@property
|
||||
def has_emeter(self) -> bool:
|
||||
"""Do nothing."""
|
||||
pass
|
||||
|
||||
def turn_off(self) -> None:
|
||||
"""Do nothing."""
|
||||
pass
|
||||
|
||||
def turn_on(self) -> None:
|
||||
"""Do nothing."""
|
||||
pass
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
"""Do nothing."""
|
||||
pass
|
||||
|
||||
@property
|
||||
def state_information(self) -> Dict[str, Any]:
|
||||
def state_information(self) -> dict[str, Any]:
|
||||
"""Do nothing."""
|
||||
pass
|
||||
|
||||
|
||||
async def test_configuring_devices_from_multiple_sources(hass):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue