mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-15 14:48:43 +00:00
pass an ioloop
This commit is contained in:
@@ -31,8 +31,10 @@ class SmartPlug(SmartDevice):
|
||||
protocol: "TPLinkSmartHomeProtocol" = None,
|
||||
context: str = None,
|
||||
cache_ttl: int = 3,
|
||||
*,
|
||||
ioloop=None,
|
||||
) -> None:
|
||||
SmartDevice.__init__(self, host, protocol, context, cache_ttl)
|
||||
SmartDevice.__init__(self, host, protocol, context, cache_ttl, ioloop=ioloop)
|
||||
self.emeter_type = "emeter"
|
||||
self._device_type = DeviceType.Plug
|
||||
|
||||
|
||||
Reference in New Issue
Block a user