Commit graph

186 commits

Author SHA1 Message Date
epenet
1adaaf49cc
Add specific EntityDescription to describe device tracker entities (#126586)
* Add TrackerEntityDescription to describe tracker entities

* Improve

* Adjust components

* Add ScannerEntityDescription

* Simplify

* Revert

* Set TrackerEntity default source type to SourceType.GPS

* Fix rebase

* Adjust default

* Remove source_type from EntityDescription

* Fix rebase

* Docstring

* Remove BaseTrackerEntityDescription
2024-09-25 07:28:29 +02:00
epenet
3995d001ec
Set default source_type on TrackerEntity and ScannerEntity (#126648)
* Set default source_type on TrackerEntity and ScannerEntity

* Add samples

* Two more

* Adjust tests
2024-09-24 20:56:01 +02:00
vhkristof
1f1ce67209
Add service to set the AC schedule of renault vehicles (#125006)
* Add service to set the AC schedule of renault vehicles

* Remove executable permission

* Applied review comments (use snapshot)

* Rewrote examples to not use JSON
2024-09-20 10:18:47 +02:00
tmenguy
3e70342265
Fix renault plug state (#125421)
* Added PlugState 3, that is coming with renault-api 0.2.7, it fixes #124682 HA ticket

* Added PlugState 3, that is coming with renault-api 0.2.7, it fixes #124682 HA ticket
2024-09-07 12:38:59 +02:00
epenet
84dcfb6ddc
Replace SW version by model ID in renault device info (#125399)
* Replace SW_VERSION by MODEL_ID in renault device info

* Simplify PR

* Fix tests
2024-09-06 11:45:13 +02:00
vhkristof
5fa23b1785
Bump renault-api to v0.2.7 (#124858)
* Bump renault-api to v0.2.7

* Updated requirements_all and requirements_test_all
2024-08-31 10:56:23 +02:00
Erik Montnemery
1a2d013c97
Update icons.json to new service schema part 3 (#124770) 2024-08-28 13:48:01 +02:00
epenet
94ce02f406
Bump renault-api to 2.0.5 (#122326)
* Bump renault-api to 2.0.5

* Update requirements_all.txt

* Update requirements_test_all.txt
2024-07-21 13:18:43 -05:00
epenet
2e031d0194
Separate renault strings (#120737) 2024-06-28 13:26:31 +02:00
epenet
1e72c2f94d
Bump renault-api to 0.2.4 (#120727) 2024-06-28 11:03:01 +02:00
epenet
771ed33b14
Bump renault-api to 0.2.3 (#118718) 2024-06-03 15:53:23 +02:00
epenet
d81bb8cdcd
Allow manual delete of stale Renault vehicles (#116229) 2024-05-18 13:46:38 +02:00
Marc Mueller
c41962455e
Use PEP 695 for decorator typing (2) (#117639) 2024-05-17 16:31:01 +02:00
Marc Mueller
44049c34f9
Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
epenet
a440783208
Store runtime data in entry in renault (#116454) 2024-04-30 17:39:03 +02:00
epenet
0005f8400d
Move Renault service registration (#116459)
* Move Renault service registration

* Hassfest
2024-04-30 17:10:40 +02:00
slyoldfox
ebbcad17c6
Add scheduled mode to renault charge mode (#115427)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-04-19 18:22:12 +02:00
epenet
92aae4d368
Bump renault-api to 0.2.2 (#115738) 2024-04-17 14:23:47 +02:00
Sid
6587ee20db
Enable Ruff TRY300 (#114437)
* Enable Ruff TRY300

* Update validation.py

* Address review comments
2024-03-30 10:37:59 +01:00
epenet
60d545e5f9
Log warnings in Renault initialisation (#114445) 2024-03-29 16:20:43 +01:00
Sid
82a60fe8ad
Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
slyoldfox
6c35ae06a0
Add scheduled mode to renault charge mode (#105967)
Add scheduled to renault charge mode - fixes #105751
2024-03-12 08:34:21 +01:00
Joost Lekkerkerker
85bc72f9f1
Remove entity description mixin in Renault (#112925)
* Remove entity description mixin in Renault

* Update homeassistant/components/renault/sensor.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update homeassistant/components/renault/button.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-03-10 17:27:47 +01:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
Marc Mueller
a033574ee2
Add empty line after module docstring [r] (#112703) 2024-03-08 15:05:07 +01:00
Joost Lekkerkerker
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
Erik Montnemery
e0c1feb22c
Migrate integrations n-r to generic flowhandler (#111864) 2024-02-29 20:09:01 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080)
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
epenet
351b07b14d
Fix issue clearing renault schedules (#105719)
* Fix issue clearing renault schedules

* Adjust
2023-12-14 12:54:03 +01:00
epenet
5ba70ef2cb
Fix AccessDeniedException handling in Renault (#104574) 2023-11-27 09:19:58 +01:00
epenet
2def7d2e71
Catch ClientOSError in renault integration (#104248) 2023-11-20 12:58:55 +01:00
epenet
c81d39f651
Fix Renault AssertionError (#99189) 2023-08-29 08:58:20 +02:00
epenet
a9b1f23b7f
Bump renault-api to 0.2.0 (#98587) 2023-08-17 18:16:32 +02:00
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
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
epenet
927905ac84
Handle http error in Renault initialisation (#97530) 2023-07-31 12:17:51 +02:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof
62fe4957c9
Migrate integration services (Q-S) to support translations (#96378) 2023-07-12 01:18:22 +02:00
Franck Nijhof
25b8593486
Fix missing name in Renault service descriptions (#96075) 2023-07-07 16:00:45 +02:00
Joost Lekkerkerker
84979f8e92
Use device class naming in Renault (#96038) 2023-07-07 10:34:11 +02:00
epenet
d7eb4c4740
Bump renault-api to 0.1.13 (#91609) 2023-04-18 19:33:09 +02:00
epenet
584066b809
Rename renault coordinator and base entity (#90760)
Refactor renault coordinator and base entity
2023-04-04 14:38:52 +02:00
epenet
73d0124c98
Use entity name translations in Renault (#90697) 2023-04-03 18:20:11 +02:00
rodriguestiago0
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 <6771947+epenet@users.noreply.github.com>

* Format

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Revert change

* Fix lint

* Add tests

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-28 10:28:44 +01:00
epenet
7d7ee1cead
Cleanup renault services (#88064) 2023-02-14 12:05:23 +01:00
epenet
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
Erik Montnemery
5dfb9cddd6
Sort manifests 8 (#87029) 2023-02-08 20:13:46 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
epenet
2433fc2bab
Fix volume state class in renault (#87280) 2023-02-03 09:01:25 -05:00