Commit graph

11 commits

Author SHA1 Message Date
epenet
d208bd461d
Migrate Renault to new entity naming style () 2022-07-09 19:12:19 +02:00
Marc Mueller
830cc278d3
Improve CoordinatorEntity typing () 2022-03-21 10:22:30 +01:00
epenet
1e5c767158
Add button entities to Renault ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-15 15:50:43 +01:00
epenet
001a452bb7
Update naming scheme for Renault entities ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 19:46:02 +02:00
epenet
6881ab58d1
Add renault last activity sensors ()
* Add battery and location last_activity sensors

* Drop state attributes

* Drop ATTR_LAST_UPDATE

* Adjust tests

* Mark new sensors as disabled_default

* Add default_disabled attribute

* Add context managers

* Adjust tests for disabled entities
2021-10-15 16:27:12 +02:00
epenet
bcf97cb308
Add device tracker platform to Renault integration () 2021-09-01 13:10:48 +02:00
epenet
1849eae0ff
Renault code quality improvements () 2021-08-31 11:06:54 +02:00
epenet
adab367f0e
Renault code quality improvements ()
* Use constants

* Drop entity_class for binary_sensor

* Move data property from RenaultDataEntity to RenaultSensor

* Update function description
2021-08-27 12:12:09 +02:00
epenet
9ba504cd78
Address late review for Renault integration ()
* Add type hints

* Fix isort

* tweaks to state attributes

* Move lambdas to regular functions

* Split CHECK_ATTRIBUTES into DYNAMIC_ATTRIBUTES and FIXED_ATTRIBUTES

* Clarify tests

* Fix typo
2021-08-27 07:22:23 +02:00
epenet
9315f3bdd9
Use EntityDescription - renault ()
* Cleanup sensor.py

* Add EntityDescription

* Add checks for state attributes

* Fix pylint

* Simplify checks

* Add icon checks

* Update data type

* Use mixin for required keys, and review class initialisation

* Add constraint to TypeVar("T")

* Enable lambda for icon handling

* Enable lambda for value handling

* Enable lambda for value handling
2021-08-25 23:15:49 +02:00
epenet
8d84edd3b7
Add renault integration () 2021-07-28 12:41:11 -07:00