core/tests/components/renault
Emma Vanbrabant 8efb9dad7e
Add device_class to Renault charging remaining time (#98393)
* Add device_class on charging remaining time

Set `device_class to `duration` on the `charging_remaining_time` entity in the Renault integration.

I had some issues showing this property on my dashboard, and setting this fixed it. The recommendation to open an issue against the original integration in these kinds of cases came from [here](https://community.home-assistant.io/t/how-to-format-a-card-to-show-hours-instead-of-seconds/425473/7).

* Update test const to add duration

* fix other cars

* Update test_sensor.ambr

* add duration in ambr
2023-08-16 09:42:38 +02:00
..
fixtures
snapshots Add device_class to Renault charging remaining time (#98393) 2023-08-16 09:42:38 +02:00
__init__.py Don't require passing identifiers to DeviceRegistry.async_get_device (#96479) 2023-07-13 13:39:25 -04:00
conftest.py
const.py Add device_class to Renault charging remaining time (#98393) 2023-08-16 09:42:38 +02:00
test_binary_sensor.py
test_button.py
test_config_flow.py
test_device_tracker.py
test_diagnostics.py Don't require passing identifiers to DeviceRegistry.async_get_device (#96479) 2023-07-13 13:39:25 -04:00
test_init.py Fix unused variable in Renault tests (#97529) 2023-07-31 12:35:30 +02:00
test_select.py
test_sensor.py
test_services.py Don't require passing identifiers to DeviceRegistry.async_get_device (#96479) 2023-07-13 13:39:25 -04:00