1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-22 14:57:14 +00:00

22 Commits

Author SHA1 Message Date
Marc Mueller
32c1b519ad
Improve auth generic typing () 2024-12-12 20:14:56 +01:00
Erik Montnemery
d6ee10a543
Make FlowHandler.context a typed dict ()
* Make FlowHandler.context a typed dict

* Adjust typing

* Adjust typing

* Avoid calling ConfigFlowContext constructor in hot path
2024-10-08 12:18:45 +02:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] () 2024-03-08 10:36:11 -05:00
Erik Montnemery
82efb3d35b
Make FlowResult a generic type () 2024-03-07 12:41:14 +01:00
Franck Nijhof
c3936e6f14
Replace isort with ruff () 2023-06-08 23:43:56 +02:00
Marc Mueller
240c9979c7
Move disallow-any-generics to mypy.ini () 2022-01-11 13:33:25 -08:00
Paulus Schoutsen
72d8882c79
Handle errors response to be None ()
Co-authored-by: Philip Allgaier <mail@spacegaier.de>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-01 13:51:10 +01:00
Paulus Schoutsen
2d374d65b6
Mark auth voluptuous schema fields as required () 2021-10-03 22:02:30 -07:00
Ville Skyttä
848c0be58a
Avoid some implicit generic Anys () 2021-08-16 23:12:06 +02:00
Ruslan Sayfutdinov
183220008d
Rename FlowResultDict to FlowResult () 2021-04-29 13:40:51 +02:00
Ruslan Sayfutdinov
80f66f301b
Define data flow result type ()
* Define data flow result type

* Revert explicit definitions

* Fix tests

* Specific mypy ignore
2021-04-15 07:17:07 -10:00
Marc Mueller
fabd73f08b
Update typing 03 () 2021-03-17 21:46:07 +01:00
Bas Nijholt
67c56c860d Sort imports according to PEP8 for 'homeassistant' folder ()
Components are already done
2019-12-09 16:42:10 +01:00
Franck Nijhof
2f0eb07624 Migrate legacy typehints in core to PEP-526 ()
* Migrate legacy typehints in core to PEP-526

* Fix one type
2019-09-03 20:36:04 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Ville Skyttä
dd9d53c83e Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 ()
* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0

* Pydocstyle D401 fixes
2018-08-24 10:28:43 +02:00
Jason Hu
1ce51bfbd6
Refactoring login flow ()
* Abstract LoginFlow

* Lint and typings
2018-08-21 11:03:38 -07:00
Ville Skyttä
3800f00564 Disable assuming Optional type for values with None default ()
https://www.python.org/dev/peps/pep-0484/#union-types
"Type checkers should move towards requiring the optional type to be
made explicit."
2018-08-17 20:22:49 +02:00
Ville Skyttä
649f17fe47 Add type hints to homeassistant.auth ()
* Always load users in auth store before use

* Use namedtuple instead of dict for user meta

* Ignore auth store tokens with invalid created_at

* Add type hints to homeassistant.auth
2018-08-16 22:25:41 +02:00
Jason Hu
50daef9a52 Add context to login flow ()
* Add context to login flow

* source -> context

* Fix unit test

* Update comment
2018-08-13 11:27:18 +02:00
Paulus Schoutsen
2fcacbff23
Allow auth providers to influence is_active ()
* Allow auth providers to influence is_active

* Fix auth script test
2018-07-19 22:10:36 +02:00
Paulus Schoutsen
b6ca03ce47
Reorg auth () 2018-07-13 11:43:08 +02:00