-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new mytoyota api endpoints (#198)
* poetry update and use stub files in dev dependencies for better hints * update mytoyota dependency in manifest file * fix implicit string concatenation * adapt config flow to new api * adopt statistics gathering to upcoming mytoyota changes * adopt device tracker to new API * update manifest file * add statistic to base entity * bump version * using brand from vehicle info * simplify genrating of device tracker * bump required minimum mytoyota version to 1.1.0 * remove unused binary sensors for now * simplify capability check * adopt binary sensors to new api models * fix import error * use last_parked capability for generating device_tracker * make metric value choise a requirement * make metric value choise a requirement * add translations * bump minmum required mytoyota version * invert binary sensor logic * only create trunk status binary_sensor if bonnet_status capability is reported by car * run pre-commit on all files * return None if try block fails * increase update_interval to 5 minutes * adjust driver door lock icon * make metric value information available for further steps * adopt statistics sensors to new api * update statistics utils and delete unsused constants * add vin sensor * display all vehicle informations in vin sensor * display ev summary also for pure electric vehicles * return timdelta and date as string * add odometer and fuel sensors * clean up sensor translations * format vin sensor attributes * use car_model_name * make battery_level sensor available for all ev vehicles * use upper case for asi_code and imei * fix battery_level sensor * return only true capabilities * add battery_range * add total_range * add battery_range_ac * fix unpacking * reurn dict instead of list * mask pii data in attributes * round range and level values * bump minimum required mytoyota version to 1.1.3 * reduce line-length * no need for masking Katashiki_code * add duration and distance to summary attributes * remove redundant vin information in attributes * remove redundant information * rename fuel consumption * bump minimum required mytoyota version to 1.2.0 * add average_fuel_consumed to vin sensor attributes * use dictionary merging * Make use of new helper functions for statistics * Update readme * generate battery sensors only for ev vehicles * Use Mapping for brand names * create odometer only when telemetry capable * Update French translations (#203) Signed-off-by: Pierre Belloy <[email protected]> * Use same condition for ev vehicles like in mytoyota lib * use same condition for last_parked like in mytoyota lib * create statistics sensors by default for now --------- Signed-off-by: Pierre Belloy <[email protected]> Co-authored-by: Pierre Belloy <[email protected]>
- Loading branch information
1 parent
142b5fe
commit 8f7909a
Showing
20 changed files
with
1,102 additions
and
754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.