I'm getting into home assistant and I want to deploy all my config completely with yaml to follow IaC best practices, but one thing that seems to be missing is the inability to create device level integrations through the yaml config.
It seems that this would be pretty easily resolved if any "root level" device integration would just have a dummy parent domain called "Devices" that it could then act as a platform for.
For example, it doesn't make any sense that I can add an integration for Emby just because it can be used as a platform for the Mediaservers domain (see example yaml code below), but a similar setup for something like Sonarr isn't available because the integration isn't a platform.
media_player:
- platform: emby
host: emby.mediaserver.svc.cluster.local
api_key: !secret emby_api_key
port: 8096
ssl: false
#### WOULD LIKE THIS TO WORK ####
devices:
- platform: sonarr
host: hostname.example.com
api_key: !secret sonarr_api_key
Question,
If I were to build out an integration that did this, would this be as simple as just adding a wrapper around the device registry entries, or would this completely change how everyone would have to write their integrations moving forward, ie, all would have to support a platform for this new top level integration domain?