Update dump_devinfo to produce new TAPO/SMART fixtures (#561)

This commit is contained in:
sdb9696
2023-12-02 16:33:35 +00:00
committed by GitHub
parent 63d64ad920
commit a6b7d73d79
3 changed files with 102 additions and 14 deletions

View File

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