diff --git a/kasa/device.py b/kasa/device.py index e07c4853c..2e0b3b2b0 100644 --- a/kasa/device.py +++ b/kasa/device.py @@ -449,6 +449,14 @@ async def wifi_join(self, ssid: str, password: str, keytype: str = "wpa2_psk"): async def set_alias(self, alias: str): """Set the device name (alias).""" + @abstractmethod + async def reboot(self, delay: int = 1) -> None: + """Reboot the device. + + Note that giving a delay of zero causes this to block, + as the device reboots immediately without responding to the call. + """ + def __repr__(self): if self._last_update is None: return f"<{self.device_type} at {self.host} - update() needed>"