mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Update typing 15 (#48079)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""Test the Dyson fan component."""
|
||||
from typing import Type
|
||||
from __future__ import annotations
|
||||
|
||||
from libpurecool.const import FanMode, FanSpeed, NightMode, Oscillation
|
||||
from libpurecool.dyson_pure_cool import DysonPureCool, DysonPureCoolLink
|
||||
@@ -67,7 +67,7 @@ ENTITY_ID = f"{PLATFORM_DOMAIN}.{ENTITY_NAME}"
|
||||
|
||||
|
||||
@callback
|
||||
def async_get_device(spec: Type[DysonPureCoolLink]) -> DysonPureCoolLink:
|
||||
def async_get_device(spec: type[DysonPureCoolLink]) -> DysonPureCoolLink:
|
||||
"""Return a Dyson fan device."""
|
||||
if spec == DysonPureCoolLink:
|
||||
return async_get_purecoollink_device()
|
||||
|
||||
Reference in New Issue
Block a user