Commit Graph
78 Commits
Author SHA1 Message Date
epenetandGitHub 5bca9d142c Use snapshot in renault diagnostics tests (#118021) 2024-05-24 09:42:33 +02:00
epenetandGitHub d81bb8cdcd Allow manual delete of stale Renault vehicles (#116229) 2024-05-18 13:46:38 +02:00
epenetandGitHub a440783208 Store runtime data in entry in renault (#116454) 2024-04-30 17:39:03 +02:00
epenetandGitHub 0005f8400d Move Renault service registration (#116459)
* Move Renault service registration

* Hassfest
2024-04-30 17:10:40 +02:00
ebbcad17c6 Add scheduled mode to renault charge mode (#115427)
Co-authored-by: epenet <[email protected]>
2024-04-19 18:22:12 +02:00
Joost LekkerkerkerandGitHub ee66f6ec8c Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10:00
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-26 00:02:16 +01:00
Erik MontnemeryandGitHub 426f73b1f4 Add State.last_reported (#113511)
* Add State.last_reported

* Update tests

* Update test snapshots

* Call state_reported listeners when firing state_changed event

* Add tests
2024-03-20 21:05:07 +01:00
fe9cc6705c Add ruff rule PIE804 (#113620)
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-16 12:45:18 -10:00
Marc MuellerandGitHub aa16a9d707 Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
Marc MuellerandGitHub 32f3f46542 Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
Marc MuellerandGitHub 7d6251ca08 Add empty line after module docstring [tests q-s] (#112711) 2024-03-08 14:47:22 +01:00
Joost LekkerkerkerandGitHub 2db0da3915 Add icon translations to Renault (#112205)
* Add icon translations to Renault

* Add icon translations to Renault
2024-03-04 15:46:14 +01:00
Franck NijhofandGitHub e0a9dcd996 Add label registry (#110821) 2024-02-19 11:59:08 +01:00
epenetandGitHub 351b07b14d Fix issue clearing renault schedules (#105719)
* Fix issue clearing renault schedules

* Adjust
2023-12-14 12:54:03 +01:00
1621310ba7 Add serial_number to device registry entries (#102334)
Co-authored-by: Joost Lekkerkerker <[email protected]>
2023-10-22 15:14:44 +02:00
J. Nick KostonandGitHub 433c022687 Save previous unique id in entity registry when it changes (#102093) 2023-10-16 21:26:19 -10:00
epenetandGitHub c81d39f651 Fix Renault AssertionError (#99189) 2023-08-29 08:58:20 +02:00
Emma VanbrabantandGitHub 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
epenetandGitHub 83db3c48c2 Fix unused variable in Renault tests (#97529) 2023-07-31 12:35:30 +02:00
epenetandGitHub 927905ac84 Handle http error in Renault initialisation (#97530) 2023-07-31 12:17:51 +02:00
Erik MontnemeryandGitHub 7539cf25be Don't require passing identifiers to DeviceRegistry.async_get_device (#96479)
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Joost LekkerkerkerandGitHub 84979f8e92 Use device class naming in Renault (#96038) 2023-07-07 10:34:11 +02:00
epenetandGitHub 7c72b97d79 Use SnapshotAssertion in Renault tests (part 2) (#92395) 2023-05-24 09:39:37 +02:00
epenetandGitHub b969790e95 Use SnapshotAssertion in Renault tests (#90778) 2023-04-30 18:55:31 +02:00
epenetandGitHub 73d0124c98 Use entity name translations in Renault (#90697) 2023-04-03 18:20:11 +02:00
epenetandGitHub bf5f7c53d8 Move mock_setup_entry to conftest (#88484) 2023-03-06 11:31:50 +01:00
bef5fde832 Add stop charge button to renault integration (#88003)
* Added service to start/stop charge

* Remove comment

* Fixed service

* removed service for start/stop charge

* Remove version

Co-authored-by: epenet <[email protected]>

* Format

Co-authored-by: epenet <[email protected]>

* Revert change

* Fix lint

* Add tests

---------

Co-authored-by: epenet <[email protected]>
2023-02-28 10:28:44 +01:00
epenetandGitHub 0a80ac19bc Add type hints to integration tests (part 18) (#88174) 2023-02-17 18:45:48 +01:00
epenetandGitHub a13535b0c7 Bump renault-api to 0.1.12 (#87773)
fix https://github.com/hacf-fr/renault-api/pull/789
2023-02-09 16:55:02 +01:00
Franck NijhofandGitHub 330e1c6cbb Clean up unnecessary registry mocks from integration tests (#87763) 2023-02-09 10:43:45 +01:00
epenetandGitHub 2433fc2bab Fix volume state class in renault (#87280) 2023-02-03 09:01:25 -05:00
epenetandGitHub 7643f98d20 Fix invalid state class in renault (#87135) 2023-02-02 10:38:21 +01:00
Franck NijhofandGitHub a79885ceaf Enable Ruff SIM117 (#86783) 2023-01-27 11:52:49 +01:00
epenetandGitHub 1918f21fb1 Raise HomeAssistantError in Renault (#86071) 2023-01-17 11:44:18 +01:00
epenetandGitHub f7d69ee325 Remove deprecated Renault service (#86070) 2023-01-17 10:28:33 +01:00
MichaelandGitHub 72d3fa6d89 Replace the usage of unit constants by enumerations in Tests [o-r] (#85936) 2023-01-15 14:50:24 +01:00
epenetandGitHub 6af07aa348 Improve renault tests (#85065) 2023-01-03 17:32:10 +01:00
epenetandGitHub 7f345e7672 Add entity translations to Renault (#83392) 2022-12-08 23:48:24 +01:00
Franck NijhofandGitHub 6c74809400 Remove unused device class from Renault select (#83330)
* Remove unused device class from Renault select

* Fix tests

* More
2022-12-06 11:27:07 +01:00
epenetandGitHub 466365c8de Fix Renault charging power sensor (#81412) 2022-11-02 18:07:51 +01:00
epenetandGitHub 1b8bed936c Use new DISTANCE and VOLUME device classes in Renault (#77488) 2022-09-28 10:46:24 +02:00
epenetandGitHub 7bc2712142 Adjust root-import in tests (#78761)
* Adjust root-import in tests

* Adjust diagnostics

* Adjust button

* Adjust select

* Adjust device_tracker

* Adjust camera

* Adjust humidifier

* Adjust media_source

* Adjust update

* Adjust siren

* Adjust number

* Adjust alarm_control_panel

* Adjust notify

* Adjust sensor

* Adjust switch

* Revert anthemav

* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
epenetandGitHub 00dd27ef1b Apply hass-relative-import to tests (i-r) (#78732) 2022-09-19 09:46:59 +02:00
Franck NijhofandGitHub 7cd68381f1 Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
epenetandGitHub 053c4428a9 Prettify json (component test fixtures) (#68892) 2022-03-30 11:37:17 +02:00
419e683526 Add Remote Engine Start status to Renault integration (#67028)
Co-authored-by: epenet <[email protected]>
2022-02-23 08:14:58 -08:00
c3dc936b54 Cleanup Renault tests (#67030)
Co-authored-by: epenet <[email protected]>
2022-02-22 14:21:38 +01:00
d49029e9fc Add door and lock status to Renault integration (#66698)
* Add coordinator for lock status

* Add fixture for lock status

* Add lock status binary sensor

* Add to test constants

* Adjust conftest

* Fix inverted state

* Add door status

Co-authored-by: epenet <[email protected]>
2022-02-21 20:07:43 +01:00
86ab500afd Add Renault hvac sensors (#65993)
* Add hvac sensors to renault

* Adjust fixtures

* Adjust tests

* Use icon_fn

* Use lambda

Co-authored-by: epenet <[email protected]>
2022-02-08 22:02:45 +01:00