Skip to content

Device Class for Uptime Sensors #24

@raph521

Description

@raph521

Hi,

Thank you for this integration, it's fantastic!

I have one possible suggestion for the uptime sensors.

I think that the device_class for uptime sensors should be set to "duration". In Home Assistant 2022.5, the "duration" type of device_class was added, which will allow for better display/formatting of entities with this type.

There are some details in this post on the Home Assistant forums here:

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