Commit graph

73 commits

Author SHA1 Message Date
epenet
7fee61db84
Move nissan_leaf base entity to separate module (#126106) 2024-09-17 15:37:39 +02:00
Erik Montnemery
1a2d013c97
Update icons.json to new service schema part 3 (#124770) 2024-08-28 13:48:01 +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
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Joost Lekkerkerker
d58ab85919
Add service icons to Nissan Leaf (#113336) 2024-03-14 13:20:28 +01:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] (#112702) 2024-03-08 15:04:07 +01:00
Jan-Philipp Benecke
28281523ec
Add pylint plugin to check for sorted platforms list (#108115) 2024-01-16 09:47:53 +01: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
90d839724c
Migrate integration services (N-P) to support translations (#96376) 2023-07-12 00:33:37 +02:00
epenet
86b4354477
Improve native_value type hints in integrations (#90033) 2023-03-21 11:40:06 +01:00
Erik Montnemery
1450b44c63
Sort manifests 7 (#87028) 2023-02-08 20:32:43 +01:00
Phil Cole
e4f692ce6f
Use pycarwings2 2.14 (#84792)
fixes undefined
2022-12-30 14:09:36 +01:00
epenet
d72c28a135
Use UnitOfLength in integrations (#84034) 2022-12-15 12:42:53 +01:00
Marc Mueller
aa3bd78f7e
Code quality improvements for nissan_leaf (#82442)
Code quality improvements for nissan_leaf
2022-11-21 09:06:30 +01:00
epenet
2b2275dfb3
Use US_CUSTOMARY_SYSTEM in components (#80623) 2022-10-19 18:54:50 +02:00
epenet
4769ec8c76
Replace not is_metric with is IMPERIAL_SYSTEM (#80266) 2022-10-14 12:51:47 +02:00
epenet
503434e538
Use DistanceConverter in components (#80182)
* Use DistanceConverter in components

* Adjust for METRIC_SYSTEM
2022-10-12 21:33:38 +02:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
Franck Nijhof
4c83ecd7bd
Fix incorrect usage of ToggleEntity in switch platforms (#64620)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2022-01-21 13:17:45 +01:00
Marc Mueller
021debb5c5
Resolve implicit imports (#63832) 2022-01-10 17:10:46 +01:00
Phil Cole
9ef1033152
Use entities instead of devices for nissan leaf (#63542) 2022-01-07 17:54:37 +01:00
Phil Cole
10027b2090
Add button to start leaf charge (#62948)
Co-authored-by: Bruce Duncan <bwduncan@gmail.com>
2022-01-05 23:33:04 +01:00
Phil Cole
8cacfd852b
Optimise sleep time for nissan leaf servers (#62857) 2022-01-05 23:22:15 +01:00
Phil Cole
b9daa22891
Introduce const file in Nissan Leaf (#63082)
* Introduce const file in Nissan Leaf

* Use final

* Don't alter start_charging logic

* Don't centralise logger
2022-01-02 11:48:33 -06:00
Phil Cole
469a1cae85
Add unique id to nissanleaf entities (#62824)
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-29 16:43:10 +01:00
Phil Cole
54d1e20948
Add type hints to nissan_leaf integration (#62967) 2021-12-29 12:23:54 +01:00
Sebastian Lövdahl
d18f1cc872
Use Platform constants all over the place 2/3 (#62953) 2021-12-28 21:23:07 +01:00
Phil Cole
68acf13f48
Add basic type hints to nissan_leaf (#62904) 2021-12-28 08:56:07 +01:00
Phil Cole
a17fffbfc2
Update to pycarwings 2.13 (#62821) 2021-12-27 10:42:00 +01:00
epenet
39590f9917
Use new enums in nissan_leaf (#61951) 2021-12-16 22:44:50 +01:00
bwduncan
ec6a67d17a
Use correct Nissan leaf device_class (#59889) 2021-11-18 15:23:57 +01:00
bwduncan
9ab8622d72
Fix Nissan Leaf default states (#59866)
* Fix default states and add device_class.

Car data is initialised to zero, which means that graphs have an ugly
drop to zero in them when HA is restarted. We should report "None" when
the state is unknown.

We need to use availability to signal whether binary_sensors have
sensible data or not.

We can remove the custom icons and use the defaults provided by using
appropriate device_class.

* Make isort happy.

* Explicitly return None

* Remove feature from bugfix PR.
2021-11-18 15:18:25 +01:00
Ville Skyttä
380cff167e
Use HTTPStatus in components/[nop]* (#58279) 2021-10-23 20:56:30 +02:00
Phil Cole
c72a34dbec
Use pycarwings2.12 for Nissan Leaf integration (#56996) 2021-10-03 21:14:45 -07:00
Erik Montnemery
103e21c278
Move temperature conversions to sensor base class (5/8) (#54475) 2021-08-12 13:26:17 +02:00
Phil Cole
cb26f334c3
Use pycarwings2 2.11 (#54424) 2021-08-11 16:34:36 +02:00
bwduncan
ee52706f03
Poll Nissan servers for battery updates (#44826) 2021-07-12 08:57:08 -10:00
tkdrob
bd443af6a2
Add targets and selectors for services (N-O) (#50608) 2021-05-15 10:30:18 +02:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Erik Montnemery
c900e3030b
Migrate integrations n-q to extend SensorEntity (#48214) 2021-03-22 19:46:46 +01:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period (#48064)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() (#47758) 2021-03-11 20:11:25 +01:00
Quentame
198ecb0945
Uniformize platform setup (#47101)
* A platform is not a component

* Fix dynalite

* SUPPORTED_PLATFORMS --> PLATFORMS

* In tests

* In tests 2

* Fix SmartThings

* Fix ZHA test

* Fix Z-Wave

* Revert Z-Wave

* Use PLATFORMS const in ambient_station

* Fix ihc comment
2021-03-02 21:43:59 +01:00
tkdrob
c95f401e2e
Use core constants for nissan_leaf (#46401) 2021-02-11 17:44:39 +01:00
Phil Cole
9cc768b34c
Bump pycarwings2 to 2.10 (#44634) 2020-12-30 09:44:44 +01:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity (#34462)
* Rename BinarySensorDevice to BinarySensorEntity

* Tweak

* Move deprecation warning to __new__, add test

* Move deprecation warning back to __init__

* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
springstan
8d61893c39
Use HTTP_OK constant (#33798)
* Use http ok constant

* Remove incorrect use

* Run isort

* Fix pylint by adding missing imports

* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
springstan
eae21be5b9
Improve string formatting v6 (#33698) 2020-04-07 23:14:28 +02:00