Marc Mueller and GitHub
0b2b486754
Update mypy to 1.6.0 ( #101780 )
2023-10-11 13:25:11 +02:00
b0cee0bc46
String formatting and max line length - Part 1 ( #84390 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2022-12-22 10:12:50 +01:00
Franck Nijhof and GitHub
73a43bfd1d
Update pyotp to 2.8.0 ( #84339 )
2022-12-21 11:53:02 +01:00
Erik Montnemery and GitHub
22b4c445a0
Drop title from auth flows ( #83628 )
2022-12-12 10:53:28 +01:00
Marc Mueller and GitHub
0c8eeaa643
Update mypy to 0.990 ( #81783 )
...
* Update mypy to 0.990
* Remove type ignore - overriding attr with property (13475)
* Remove type ignores - hasattr (13544)
* Adjust type ignore - assignment (13549)
* New error code - type-abstract (13785)
* Disable annotation-unchecked (13851)
2022-11-08 14:41:39 +01:00
Franck Nijhof and GitHub
cf138c7266
Update pyotp to 2.7.0 ( #78500 )
2022-09-15 11:53:16 +02:00
Marc Mueller and GitHub
af7df260a0
Fix small type issues [core] ( #75760 )
2022-07-26 16:28:22 +02:00
epenet and GitHub
16900dcef1
Make Store a generic class ( #74617 )
2022-07-09 22:32:57 +02:00
Franck Nijhof and GitHub
5f44d0f8f9
Clean up accessing storage.Store helper via hass ( #72009 )
2022-05-17 18:45:57 +02:00
Marc Mueller and GitHub
ec980a574b
Improve typing [util.decorator] ( #67087 )
2022-02-23 20:58:42 +01:00
Marc Mueller and GitHub
1ad023a63f
Add type ignore error codes [auth] ( #66774 )
2022-02-18 23:29:56 +01:00
Marc Mueller and GitHub
9c5e0fc5e0
Fix auth type comment ( #66522 )
2022-02-14 20:10:18 +01:00
Marc Mueller and GitHub
d3b7bd25ef
Update typing (1) ( #63922 )
2022-01-11 21:26:03 +01:00
2c904c0974
Bump mypy to 0.930 ( #62642 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
2021-12-27 17:55:17 +01:00
J. Nick Koston and GitHub
96f7b0d910
Use atomicwrites for mission critical core files ( #59606 )
2021-11-15 11:19:31 +01:00
Christian Bilevits and GitHub
370c7a7ccf
Bump pyotp to 2.6.0 ( #58413 )
2021-10-26 20:41:12 +02:00
Marc Mueller and GitHub
eab235173b
Use assignment expressions 28 ( #58189 )
2021-10-22 14:06:04 +02:00
Paulus Schoutsen and GitHub
2d374d65b6
Mark auth voluptuous schema fields as required ( #57003 )
2021-10-03 22:02:30 -07:00
Marc Mueller and GitHub
7af67d34cf
Use assignment expressions 01 ( #56394 )
2021-09-18 13:31:35 -10:00
Ruslan Sayfutdinov and GitHub
183220008d
Rename FlowResultDict to FlowResult ( #49847 )
2021-04-29 13:40:51 +02:00
Ruslan Sayfutdinov and GitHub
80f66f301b
Define data flow result type ( #49260 )
...
* Define data flow result type
* Revert explicit definitions
* Fix tests
* Specific mypy ignore
2021-04-15 07:17:07 -10:00
Franck Nijhof and GitHub
45f77ccccf
Merge of nested IF-IF cases - Core ( #48364 )
2021-03-27 09:23:32 +01:00
Marc Mueller and GitHub
fabd73f08b
Update typing 03 ( #48015 )
2021-03-17 21:46:07 +01:00
bc1daf1802
None optional hass typing in FlowHandler ( #46462 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-02-13 13:21:37 +01:00
Franck Nijhof and GitHub
9b7c39d20b
Postponed evaluation of annotations in core ( #46434 )
...
* Postponed evaluation of annotations in core
* Remove unneeded future
2021-02-12 10:58:20 +01:00
Philip Allgaier and GitHub
625bbe6238
Cleanup unused loggers (components A-M) ( #41600 )
2020-10-12 16:59:05 +02:00
Ville Skyttä and GitHub
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Ville Skyttä and GitHub
ac0dbb17af
Attrs cleanups ( #37849 )
2020-07-14 10:30:30 -07:00
Ville Skyttä and GitHub
0c5ca3084e
Add and fix type hints ( #36501 )
...
* 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 and GitHub
b2af1de273
Improve string formatting v9 ( #34050 )
...
* Improve string formatting v9
* Address review comments
2020-04-12 17:18:09 +02:00
springstan and GitHub
46bbe816f6
Remove None from dict.get(key, None) ( #33794 )
2020-04-07 21:06:05 +02:00
Franck Nijhof and GitHub
b9b1cee403
Enable pylint import-outside-toplevel ( #33631 )
2020-04-04 17:07:36 +02:00
Christian Clauss and GitHub
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Bas Nijholt and Franck Nijhof
67c56c860d
Sort imports according to PEP8 for 'homeassistant' folder ( #29789 )
...
Components are already done
2019-12-09 16:42:10 +01:00
Ville Skyttä and Paulus Schoutsen
99c7608fb4
Lint config cleanups ( #28864 )
...
* Remove bunch of unneeded lint exclusions
* Use symbolic names instead of identifiers in pylint disables
* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Franck Nijhof and Paulus Schoutsen
04ab20846a
Bump black to 19.10b0 ( #28310 )
2019-10-28 23:32:34 -07:00
Ville Skyttä and GitHub
fde128d66c
Upgrade mypy to 0.730, address raised issues ( #26959 )
...
https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
2019-09-27 22:57:59 +03:00
Franck Nijhof and Pascal Vizeli
8a9e47d3c7
Bump pyotp to 2.3.0 ( #26849 )
2019-09-23 15:43:48 +02:00
Franck Nijhof and Paulus Schoutsen
2f0eb07624
Migrate legacy typehints in core to PEP-526 ( #26403 )
...
* Migrate legacy typehints in core to PEP-526
* Fix one type
2019-09-03 20:36:04 -07:00
Franck Nijhof and Paulus Schoutsen
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Joakim Plate and Paulus Schoutsen
d1b9ebc7b2
Integration requirement check refactor ( #25626 )
...
* Factor out code getting requirements for integration
* Have process requirements raise an exception
* One more lint fix
* Blackify
* Catch new exception
* Let RequirementsNotFound be a HomeAssistantError
* Correct another test
* Split catching of exceptions and avoid complete log
2019-08-07 15:35:50 -07:00
Paulus Schoutsen
620cb74050
Type
2019-07-31 13:08:31 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Josef Schlehofer and Daniel Høyer Iversen
3b0660ae89
Upgrade pyotp to 2.2.7 ( #23274 )
2019-04-21 09:03:17 +02:00
Jason Hu and Paulus Schoutsen
4a3b4cf346
Resolve race condition when HA auth provider is loading ( #21619 )
...
* Resolve race condition when HA auth provider is loading
* Fix
* Add more tests
* Lint
2019-03-04 15:55:26 -08:00
Paulus Schoutsen and Pascal Vizeli
df21dd21f2
RFC: Call services directly ( #18720 )
...
* Call services directly
* Simplify
* Type
* Lint
* Update name
* Fix tests
* Catch exceptions in HTTP view
* Lint
* Handle ServiceNotFound in API endpoints that call services
* Type
* Don't crash recorder on non-JSON serializable objects
2018-11-30 21:28:35 +01:00
Ville Skyttä and Paulus Schoutsen
7248c9cb0e
Remove some unused imports ( #18732 )
2018-11-27 09:35:35 +01:00
Paulus Schoutsen and GitHub
08fe7c3ece
Pytest tests ( #17750 )
...
* 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 and Paulus Schoutsen
e5861241c7
Added support for private storage. ( #16878 )
...
* 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 and Paulus Schoutsen
7a77951bb4
Add Notify MFA module ( #16314 )
...
* 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