Add update interface for iot and expose it through cli

This commit is contained in:
Teemu Rytilahti
2024-04-03 17:54:32 +02:00
parent 3429821b25
commit 6dcc2758d7
8 changed files with 228 additions and 18 deletions

View File

@@ -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: