1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-22 22:17:07 +00:00

29 Commits

Author SHA1 Message Date
Franck Nijhof
5f44d0f8f9
Clean up accessing storage.Store helper via hass () 2022-05-17 18:45:57 +02:00
Marc Mueller
1ad023a63f
Add type ignore error codes [auth] () 2022-02-18 23:29:56 +01:00
Marc Mueller
9c5e0fc5e0
Fix auth type comment () 2022-02-14 20:10:18 +01:00
J. Nick Koston
96f7b0d910
Use atomicwrites for mission critical core files () 2021-11-15 11:19:31 +01:00
Christian Bilevits
370c7a7ccf
Bump pyotp to 2.6.0 () 2021-10-26 20:41:12 +02:00
Paulus Schoutsen
2d374d65b6
Mark auth voluptuous schema fields as required () 2021-10-03 22:02:30 -07:00
Marc Mueller
7af67d34cf
Use assignment expressions 01 () 2021-09-18 13:31:35 -10: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
Franck Nijhof
bc1daf1802
None optional hass typing in FlowHandler ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) () 2020-10-12 16:59:05 +02:00
Ville Skyttä
0c5ca3084e
Add and fix type hints ()
* Fix exceptions.Unauthorized.permission type

* Use auth.permission consts more

* Auth typing improvements

* Helpers typing improvements

* Calculate self.state only once
2020-06-06 20:34:56 +02:00
springstan
b2af1de273
Improve string formatting v9 ()
* Improve string formatting v9

* Address review comments
2020-04-12 17:18:09 +02:00
Franck Nijhof
b9b1cee403
Enable pylint import-outside-toplevel () 2020-04-04 17:07:36 +02: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
04ab20846a Bump black to 19.10b0 () 2019-10-28 23:32:34 -07:00
Ville Skyttä
fde128d66c
Upgrade mypy to 0.730, address raised issues ()
https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
2019-09-27 22:57:59 +03:00
Franck Nijhof
8a9e47d3c7 Bump pyotp to 2.3.0 () 2019-09-23 15:43:48 +02: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
Josef Schlehofer
3b0660ae89 Upgrade pyotp to 2.2.7 () 2019-04-21 09:03:17 +02:00
Jason Hu
4a3b4cf346 Resolve race condition when HA auth provider is loading ()
* Resolve race condition when HA auth provider is loading

* Fix

* Add more tests

* Lint
2019-03-04 15:55:26 -08:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ()
* Convert core tests

* Convert component tests to use pytest assert

* Lint 🤷‍♂️

* Fix test

* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00
Nicko van Someren
e5861241c7 Added support for private storage. ()
* Addded support for private storage.

Include 'private' flag parameters to the Store class and save_json function.
Updated various authentication and onboarding classes to use private stores.
Fixed unit test for emulated_hue which used a mock patch on save_json().

* Fixed Hound formatting issues not detected by local linting.
2018-09-26 10:24:32 +02:00
Jason Hu
7a77951bb4 Add Notify MFA module ()
* Add Notify MFA

* Fix unit test

* Address review comment, change storage implementation

* Add retry limit to mfa module

* Fix loading

* Fix invalaid login log processing

* Typing

* Change default message template

* Change one-time password to 8 digit

* Refactoring to not save secret

* Bug fixing

* Change async_initialize method name to aysnc_initialize_login_mfa_step

* Address some simple fix code review comment
2018-09-24 11:06:50 +02:00
Jason Hu
34deaf8849 Add valid_window=1 to TOTP verify () 2018-09-15 13:28:25 +02:00
Jason Hu
563588651c Tweak MFA login flow ()
* Tweak MFA login flow

* Fix typo
2018-08-29 10:16:54 +02:00
Jason Hu
47755fb1e9 Add Time-based Onetime Password Multi-factor Authentication Module ()
* Add Time-based Onetime Password Multi-factor Auth

Add TOTP setup flow, generate QR code

* Resolve rebase issue

* Use svg instead png for QR code

* Lint and typing

* Fix translation

* Load totp auth module by default

* use <svg> tag instead markdown image

* Update strings

* Cleanup
2018-08-26 22:38:52 +02:00