Skip to content

MQTT HomeAssistant time_to_full_charge unit of measurement 'None' #1644

@radi334

Description

@radi334

** Append Logfile **
no required

Describe the bug
HomeAssistant Integration via MQTT von Teslalogger. Fehler:
Entity sensor.xxx_time_to_full_charge (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('duration') it is using; expected one of ['d', 's', 'min', 'ms', 'h', 'μs']; Please update your configuration if your entity is manually configured

To Reproduce
MQTT value für time_to_full_charge hat keine Messeinheit definiert

Expected behavior
Messeinheit ['d', 's', 'min', 'ms', 'h', 'μs']; sollte entsprechend definiert sein.

Screenshots
If applicable, add screenshots to help explain your problem.

** Teslalogger Type **
Docker

** Do you use FleetAPI or old OwnersAPI **
FleetAPI

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions