2024-04-30 16:42:53 +00:00
|
|
|
"""Module for Fan Interface."""
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
2024-05-13 16:34:44 +00:00
|
|
|
from ..module import Module
|
2024-04-30 16:42:53 +00:00
|
|
|
|
|
|
|
|
2024-05-13 16:34:44 +00:00
|
|
|
class Fan(Module, ABC):
|
2024-05-02 12:55:08 +00:00
|
|
|
"""Interface for a Fan."""
|
2024-04-30 16:42:53 +00:00
|
|
|
|
|
|
|
@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:
|
2024-04-30 16:42:53 +00:00
|
|
|
"""Set fan speed level."""
|