python-kasa/kasa/interfaces/fan.py

21 lines
419 B
Python
Raw Normal View History

"""Module for Fan Interface."""
from __future__ import annotations
from abc import ABC, abstractmethod
from ..module import Module
class Fan(Module, ABC):
"""Interface for a Fan."""
@property
@abstractmethod
def fan_speed_level(self) -> int:
"""Return fan speed level."""
@abstractmethod
2024-11-10 18:55:13 +00:00
async def set_fan_speed_level(self, level: int) -> dict:
"""Set fan speed level."""