hass-core/homeassistant
Brett Adams 1cc47c0553
Add reauth to Tessie (#105419)
* First pass at Tessie

* Working POC

* async_step_reauth

* Config Flow tests

* WIP

* Add test requirement

* correctly gen test requirements

* 100% coverage

* Remove remnants of copy paste

* Add TPMS

* Fix docstring

* Remove redundant line

* Fix some more copied docstrings

* Grammar

* Create reusable StrEnum

* Streamline get

* Add a couple more sensors

* Removed need for a model

* Move MODELS

* Remove DOMAIN from config flow

* Add translation strings

* Remove unused parameter

* Simplify error handling

* Refactor coordinator to class

* Add missing types

* Add icon to shift state

* Simplify setdefault

Co-authored-by: J. Nick Koston <nick@koston.org>

* Use walrus for async_unload_platforms

Co-authored-by: J. Nick Koston <nick@koston.org>

* Reformat entity init

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove Unique ID

* Better Config Flow Tests

* Fix all remaining tests

* Standardise docstring

* Remove redudnant test

* Set TessieDataUpdateCoordinator on entity

* Correct some sensors

* add error types

* Make shift state a ENUM sensor

* Add more sensors

* Fix translation string

* Add precision suggestions

* Move session from init to coordinator

* Add api_key type

* Remove api_key parameter

* Meta changes

* Update TessieEntity and TessieSensor translations

* Goodbye translation keys

* bump tessie-api to 0.0.9

* Fix only_active to be True

* Per vehicle coordinator

* Rework coordinator

* Fix coverage

* WIP

* The grand rework

* Add comments

* Use ENUM more

* Add ENUM translations

* Update homeassistant/components/tessie/sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Add entity_category

* Remove reauth

* Remove session

* Update homeassistant/components/tessie/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Add property tag

* Add error text

* Complete config flow tests

* Fix property and rename

* Fix init test

* Reworked coordinator tests

* Add extra checks

* Update homeassistant/components/tessie/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/tessie/coordinator.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Ruff fix

* Update homeassistant/components/tessie/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove future ENUMs

Co-authored-by: J. Nick Koston <nick@koston.org>

* Ruff fix

* Update homeassistant/components/tessie/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove reauth and already configured strings

* Lowercase sensor values for translation

* Update homeassistant/components/tessie/__init__.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fixed, before using lambda

* Add value lambda

* fix lambda

* Fix config flow test

* @bdraco fix for 500 errors

* format

* Add reauth

* Reuse string in reauth

* Ruff

* remove redundant check

* Improve error tests

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-09 23:37:57 -08:00
..
auth Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
backports Update mypy to 1.6.0 (#101780) 2023-10-11 13:25:11 +02:00
brands Add Flexit bacnet integration (#104275) 2023-11-30 16:50:13 +01:00
components Add reauth to Tessie (#105419) 2023-12-09 23:37:57 -08:00
generated Add Tessie Integration (#104684) 2023-12-09 12:46:32 -10:00
helpers Workaround to_json template filter in parsing dict key (#105327) 2023-12-08 20:57:53 +01:00
scripts Remove logic converting empty or falsy YAML to empty dict (#103912) 2023-12-05 18:08:11 +01:00
util Prevent duplicate default SSLContext instances (#105348) 2023-12-09 11:30:12 -10:00
__init__.py
__main__.py Make it possible to restart core in safe mode (#102606) 2023-10-24 14:47:58 +02:00
block_async_io.py
bootstrap.py Add domain key config validation (#104242) 2023-12-05 15:07:32 +01:00
config.py Remove logic converting empty or falsy YAML to empty dict (#103912) 2023-12-05 18:08:11 +01:00
config_entries.py Rename ex to exc as name for exceptions (#104479) 2023-11-25 08:30:18 +01:00
const.py Bump version to 2024.1.0dev0 (#104746) 2023-11-29 21:29:11 +01:00
core.py Trigger Home Assistant shutdown automations right before the stop event instead of during it (#91165) 2023-12-05 11:24:41 -10:00
data_entry_flow.py Validate steps in Flowhandler (#102152) 2023-10-19 13:34:10 +02:00
exceptions.py Raise and suppress stack trace when reloading yaml fails (#102410) 2023-11-24 17:34:45 +01:00
loader.py Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
package_constraints.txt Update frontend to 20231208.2 (#105299) 2023-12-08 16:45:34 +01:00
requirements.py Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
runner.py Make it possible to restart core in safe mode (#102606) 2023-10-24 14:47:58 +02:00
setup.py Use modern platform path when reporting platform config errors (#104238) 2023-12-05 15:06:13 +01:00
strings.json Improve OAuth error handling in configuration flows (#103157) 2023-11-11 11:02:51 +01:00