Rename bulb interface to light and move fan and light interface to interfaces (#910)

Also rename BulbPreset to LightPreset.
This commit is contained in:
Steven B
2024-05-11 19:40:08 +01:00
committed by GitHub
parent f259a8f162
commit d7b00336f4
11 changed files with 59 additions and 44 deletions

20
kasa/interfaces/fan.py Normal file
View File

@@ -0,0 +1,20 @@
"""Module for Fan Interface."""
from __future__ import annotations
from abc import ABC, abstractmethod
from ..device import Device
class Fan(Device, ABC):
"""Interface for a Fan."""
@property
@abstractmethod
def fan_speed_level(self) -> int:
"""Return fan speed level."""
@abstractmethod
async def set_fan_speed_level(self, level: int):
"""Set fan speed level."""