Closed almirus closed 3 weeks ago
As noted on #1960, the code was only using the absence of a local key to detect gateways. But some gateways have local functions as well, so they do have local keys. Now a list of known gateway categories has been added, to improve the recognition (in this case wg2, which seems to be the general category for Bluetooth gateways).
Describe the bug Good day! The cloud addition feature is cool, but I don't know if it's a Tuya API error or an integration bug, but the (lamp) hub is in the device list and absent from the hub list. Therefore, I cannot connect the lamps that are connected through this hub; I get the error "Device needs a gateway"
To Reproduce add cloud authorization, try to add a sub-device - the lamp
Additional context
![image](https://github.com/make-all/tuya-local/assets/16898685/8a43f429-4432-47f5-bf2b-edfca02ae826)