mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-28 12:18:26 +00:00
Move SmartBulb into SmartDevice (#874)
This commit is contained in:
@@ -5,8 +5,6 @@ from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import NamedTuple, Optional
|
||||
|
||||
from .device import Device
|
||||
|
||||
try:
|
||||
from pydantic.v1 import BaseModel
|
||||
except ImportError:
|
||||
@@ -45,7 +43,7 @@ class BulbPreset(BaseModel):
|
||||
mode: Optional[int] # noqa: UP007
|
||||
|
||||
|
||||
class Bulb(Device, ABC):
|
||||
class Bulb(ABC):
|
||||
"""Base class for TP-Link Bulb."""
|
||||
|
||||
def _raise_for_invalid_brightness(self, value):
|
||||
|
||||
Reference in New Issue
Block a user