Skip to content

Group each container as Device #190

@renedis

Description

@renedis

The integration imports just entities which makes it really hard to find the entities you want.
HomeAssistant supports grouping as a device.

It would be great if the sensor.py and __ init __ .py are updated to support to see each container as one device and set the container name as device name.

This can be done by doing something like this:

self._attr_device_info = {
    "identifiers": {(DOMAIN, self._container_id)},
    "name": self._container_name,
    "manufacturer": "Docker",
    "model": "Container",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions