Make timeout adjustable (#494)

This commit is contained in:
J. Nick Koston
2023-10-07 08:58:00 -10:00
committed by GitHub
parent 20b3f7a771
commit 0ec0826cc7
10 changed files with 39 additions and 17 deletions

View File

@@ -86,8 +86,9 @@ class SmartStrip(SmartDevice):
*,
port: Optional[int] = None,
credentials: Optional[Credentials] = None,
timeout: Optional[int] = None,
) -> None:
super().__init__(host=host, port=port, credentials=credentials)
super().__init__(host=host, port=port, credentials=credentials, timeout=timeout)
self.emeter_type = "emeter"
self._device_type = DeviceType.Strip
self.add_module("antitheft", Antitheft(self, "anti_theft"))