Use new sub entries to separate integration config from device config
Description
In HA 2025.7.0, the ability to have sub-entries of config entries was introduced. This is useful for having an integration-wide config for things like enabling discovery, persistent storage of cloud credentials, while using a sub-entry for each device. This would replace the config entry per device we have currently, with no shared integration-wide config.
Steps to reproduce
No response
Expected behaviour
No response
Additional context
No response
Confirmation
-
[x] I am sure this is a bug or improvement, that is well enough described that it can be implemented.
-
[x] This report is for tuya-local, not for localtuya.
-
[ ] If this is for a specific device, the device config filename is mentioned above, or diagnostics are included.
-
[ ] Log messages or diagnostics relevant to the issue are included.
-
[x] This is not requesting addition of a new device.