petretiandrea / plugp100

Work in progress implementation of tapo protocol in python.
GNU General Public License v3.0
72 stars 27 forks source link

Restore Hub functionality #199

Open wehrmannit opened 2 months ago

wehrmannit commented 2 months ago

Since the breaking changes in version > 4.0.3 it wasn't possible to add the children/sub devices of a hub (https://github.com/petretiandrea/home-assistant-tapo-p100/issues/773)

Debugging this issue showed that the device wasn't classified as hub as the API returns it as KASAHUB instead of the expected TAPOHUB. Considering it's possible that either one are used I added the KASAHUB option.

Using the debugger I changed the value on the fly and everything worked out great, all sub devices were recognized perfectly fine.

image image