Commit Graph
39 Commits
Author SHA1 Message Date
G-TwoandGitHub 5ad52f122d Return raw API data for subaru device diagnostics (#114119) 2024-05-07 17:32:17 +02:00
Joost LekkerkerkerandGitHub f3ba713289 Use FlowResultType enum in config flow tests N-Z (#114682)
Use FlowResultType enum in config flow tests
2024-04-03 09:53:20 +02: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
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 ac53b78a0c Deduplicate constants A-D (#105638) 2023-12-13 14:21:44 +01:00
Erik MontnemeryandGitHub 6908497c3d Add minor version to config entries (#105479) 2023-12-12 08:44:35 +01:00
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <[email protected]>
2023-11-27 14:38:59 +01:00
Erik MontnemeryandGitHub b885dfa5a8 Add preview to sensor group config and option flows (#83638) 2023-08-22 10:29:16 +02:00
Ville SkyttäandGitHub 2399cd283a Python 3.10 support cleanups (#98640) 2023-08-21 19:14:07 +02:00
Franck NijhofandGitHub 868a5f377f Ruff: isort don't split imports based on trailing comma (#98162) 2023-08-10 14:27:03 +02:00
c5e5567912 Add device tracker to Subaru integration (#79492)
* Add device tracker to subaru integration

* Fix timestamp in device tracker

* Add test for device tracker

* Incorporate PR review comments

* Apply suggestions from code review

Co-authored-by: G Johansson <[email protected]>

* Incorporate code review comments

* Add tests for bad device tracker data

* Check device tracker data is available in entity

---------

Co-authored-by: G Johansson <[email protected]>
2023-08-05 15:52:20 +02:00
fff254e0dc Avoid using name in Subaru migrations (#96221)
* Avoid using name in Subaru migrations

* Add feedback

* Update tests/components/subaru/test_sensor.py

Co-authored-by: G Johansson <[email protected]>

* Update tests/components/subaru/test_sensor.py

Co-authored-by: G-Two <[email protected]>

---------

Co-authored-by: G Johansson <[email protected]>
Co-authored-by: G-Two <[email protected]>
2023-07-20 14:45:07 +02:00
GarrettandGitHub 34f8e94ca9 Bump subarulink to 0.7.5 (#89162) 2023-03-04 22:26:16 +01:00
epenetandGitHub dab8557951 Add type hints to integration tests (part 21) (#88233) 2023-02-16 11:15:26 +01:00
Franck NijhofandGitHub ed79265843 Enable Ruff PT006 (#88165)
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenetandGitHub ba85fdcd61 Add type hints to integration tests (q-s) (#87706) 2023-02-08 08:12:54 -08:00
Franck NijhofandGitHub 5e81d28116 Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Franck NijhofandGitHub bfbf9b9751 Adjusts imports in tests to match our relative import rules (#86788) 2023-01-27 12:51:58 +01:00
e4a78420b8 Enable Ruff PT013 (#86757)
Co-authored-by: Martin Hjelmare <[email protected]>
2023-01-27 09:09:46 +01:00
epenetandGitHub 30bf0634fe Add per-file-ignore to pylint (#86289) 2023-01-22 17:26:24 +01:00
GarrettandGitHub efc637cb2b Bump subarulink to v0.7.0 (#83213)
fixes undefined
2022-12-05 10:53:05 +01:00
494cbf0dbe Add diagnostics to Subaru integration (#81169)
Co-authored-by: J. Nick Koston <[email protected]>
2022-10-29 15:02:32 -05:00
GarrettandGitHub 073951177b Code quality update for Subaru sensors (#79482)
* Use distance device class for sensors

* Change sensor name casing and unique_id

* Migrate sensor entity unique_id

* Match title-cased unique_id when migrating

* Remove unneeded regex to find '_' delimited id suffix

* Incorporate PR review comments

* Add check to prevent extra odometer entity migration
2022-10-24 01:54:22 +02:00
epenetandGitHub e84e5f134e Use US_CUSTOMARY_SYSTEM in tests (#80658)
* Use US_CUSTOMARY_SYSTEM in tests

* Don't update test_unit_system
2022-10-20 15:42:23 +02:00
GarrettandGitHub 9058b5b9c3 Update sensors for Subaru integration (#66996)
* Update sensor.py

* Change "EV Time to Fully Charged" type to datetime object (HA 2022.2)

* Validate types before accessing dict entries

* Test handling of invalid data from Subaru

* Bump to subarulink 0.4.2

* Incorporate style suggestion

* Update sensor.py to use SensorEntity

* isort tests

* Remove SubaruSensor.current_value

* Fix isort errors

* Resolve conflict from previous PR (add locks)

* Fix linting errors in config_flow.py

* Incorporate PR review comments for sensor

* Incorporate PR review comments for sensor

* Make 3rd party library responsible for API data parsing

* Add type annotations to sensor.py

* Incorporate PR review comments

* Incorporate PR review comments

* Set _attr_has_entity_name = True for sensors
2022-10-02 00:25:49 +02:00
epenetandGitHub e9f55f4e54 Apply hass-relative-import to tests (s-z) (#78733) 2022-09-19 09:51:31 +02:00
Paulus SchoutsenandGitHub 14f68ec1a9 Store redirect URI in context instead of asking each time (#77380)
* Store redirect URI in context instead of asking each time

* Fix tests
2022-08-29 19:28:42 -04:00
Franck NijhofandGitHub 69cc6ab5f1 Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
J. Nick KostonandGitHub f1b400feaf Revert changes from #70300 part 2 (#70386) 2022-04-21 10:50:00 -10:00
J. Nick KostonandGitHub 309424d3b9 Prevent tests changing units from affecting other tests (#70300)
* Prevent tests changing temperature_unit from affecting other tests

* tweak
2022-04-19 11:38:52 -10:00
GarrettandGitHub ab0abdc988 Add 2FA support for Subaru integration setup (#68753)
* Add 2FA support for Subaru integration setup

* Update config flow to abort with 2FA request fail
2022-03-30 13:53:03 +02:00
a0a96dab05 Add door locks to Subaru integration (#52852)
Co-authored-by: J. Nick Koston <[email protected]>
2022-03-19 23:41:53 -10:00
Ville SkyttäandGitHub 19d25cd901 Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Franck NijhofandGitHub 177317a345 Allow passing options in config flow entry creation (#49912) 2021-05-05 22:14:01 -07:00
Erik MontnemeryandGitHub 8013eb0e08 Allow data entry flows to hint for additional steps (#49202) 2021-04-23 11:02:12 -07:00
Franck NijhofandGitHub 969c147b77 Clean up superfluous integration setup - part 4 (#49295)
* Clean up superfluous integration setup - part 4

* Adjust tests
2021-04-16 17:46:49 +02:00
a019f076c0 Subaru integration code quality changes (#48193)
* Apply changes from code review

* Update sensor tests

* Fix pylint error

* Apply suggestions from code review

Co-authored-by: Brandon Rothweiler <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>

Co-authored-by: Brandon Rothweiler <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>
2021-03-26 04:24:37 +01:00
3ad207a499 Add new Subaru integration (#35760)
Co-authored-by: On Freund <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2021-02-20 16:52:44 -10:00