mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-02-02 09:00:00 +00:00
Add update interface for iot and expose it through cli
This commit is contained in:
@@ -14,6 +14,7 @@ from .deviceconfig import DeviceConfig
|
||||
from .emeterstatus import EmeterStatus
|
||||
from .exceptions import KasaException
|
||||
from .feature import Feature
|
||||
from .firmware import Firmware
|
||||
from .iotprotocol import IotProtocol
|
||||
from .module import Module, ModuleT
|
||||
from .protocol import BaseProtocol
|
||||
@@ -288,6 +289,11 @@ class Device(ABC):
|
||||
)
|
||||
return self.children[index]
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def firmware(self) -> Firmware:
|
||||
"""Return firmware."""
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def time(self) -> datetime:
|
||||
|
||||
Reference in New Issue
Block a user