mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 18:54:08 +00:00
Update dump_devinfo to produce new TAPO/SMART fixtures (#561)
This commit is contained in:
5
kasa/tapo/__init__.py
Normal file
5
kasa/tapo/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Package for supporting tapo-branded and newer kasa devices."""
|
||||
from .tapodevice import TapoDevice
|
||||
from .tapoplug import TapoPlug
|
||||
|
||||
__all__ = ["TapoDevice", "TapoPlug"]
|
@@ -33,11 +33,13 @@ class TapoDevice(SmartDevice):
|
||||
if self.credentials is None or self.credentials.username is None:
|
||||
raise AuthenticationException("Tapo plug requires authentication.")
|
||||
|
||||
self._components = await self.protocol.query("component_nego")
|
||||
self._info = await self.protocol.query("get_device_info")
|
||||
self._usage = await self.protocol.query("get_device_usage")
|
||||
self._time = await self.protocol.query("get_device_time")
|
||||
|
||||
self._last_update = self._data = {
|
||||
"components": self._components,
|
||||
"info": self._info,
|
||||
"usage": self._usage,
|
||||
"time": self._time,
|
||||
|
Reference in New Issue
Block a user