Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Erik Montnemery
97cc05d0b4
Make it possible to restart core in safe mode ( #102606 )
2023-10-24 14:47:58 +02:00
Erik Montnemery
c481fdb7d0
Rename safe mode to recovery mode ( #102580 )
2023-10-23 20:33:08 +02:00
Erik Montnemery
e484066f2b
Remove dead code from __main__.py ( #98694 )
2023-08-20 10:17:28 +02:00
Franck Nijhof
79b52a2b41
Stricter pylint message control ( #86154 )
2023-01-20 13:47:55 +01:00
Ville Skyttä
19426ec18a
Startup error message improvements ( #85860 )
...
* Output config and lib dir create failure reasons
* Output to stderr
* Fix error message when specified config directory is not a directory
2023-01-15 05:19:01 +01:00
puddly
8c8994352d
Allow only specific packages to be skipped during startup dependency installation ( #82758 )
2022-11-30 08:38:52 +01:00
Erik Montnemery
c285743621
Validate operating system is supported ( #64352 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-18 13:16:23 -08:00
Erik Montnemery
fbd4eca7b3
Remove --runner option from __main__.py ( #64347 )
...
* Remove --runner option from __main__.py
* Update homeassistant/__main__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Always check for lingering threads
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2022-01-18 15:18:35 +01:00
Erik Montnemery
319d4d64dc
Remove --daemon and --pid-file option from __main__.py ( #64345 )
...
* Remove --pid-file option from __main__.py
* Remove --daemon option from __main__.py
2022-01-18 14:01:57 +01:00
Shay Levy
fd955be547
Fix core restart due to change in relative imports ( #64209 )
2022-01-16 13:47:43 -08:00
Erik Montnemery
b3421cf727
Remove Windows workarounds ( #64068 )
2022-01-13 20:41:11 +01:00
Ruslan Sayfutdinov
55f4962c06
Fix pylint plugin which checks relative imports ( #62693 )
2021-12-23 11:14:47 -08:00
Oscar Calvo
c48527858d
Activate fault handler ( #56550 )
2021-09-28 00:05:06 -07:00
Marc Mueller
7af67d34cf
Use assignment expressions 01 ( #56394 )
2021-09-18 13:31:35 -10:00
Marc Mueller
10bfc78365
Fix missing encoding with open() ( #53593 )
...
* Fix missing encoding with open()
* Fix tests
* Improve open - frontend
2021-07-28 09:41:45 +02:00
Marc Mueller
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
Marc Mueller
e55702d635
Update typing 01 ( #48013 )
2021-03-17 17:34:55 +01:00
Ville Skyttä
6ae9399237
Upgrade isort to 5.4.2 ( #37939 )
2020-08-29 08:23:55 +02:00
Paulus Schoutsen
f49ce5d1b4
Protect loop set default executor ( #37438 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-07-06 15:58:53 -07:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
springstan
fca90a8ddc
Improve string formatting v5 ( #33697 )
...
* Improve string formatting v5
* Address review comments
2020-04-05 17:48:55 +02:00
Franck Nijhof
22ae498f3a
Remove redundant open modes ( #33652 )
2020-04-04 22:49:15 +02:00
Franck Nijhof
b9b1cee403
Enable pylint import-outside-toplevel ( #33631 )
2020-04-04 17:07:36 +02:00
Paulus Schoutsen
4bbc0a03ca
Activate asyncio debug when HA run in debug mode ( #33251 )
2020-03-25 13:03:56 -07:00
Paulus Schoutsen
5fdc60e067
Add Safe Mode ( #30723 )
...
* Store last working HTTP settings
* Add safe mode
* Fix tests
* Add cloud to safe mode
* Update logging text
* Fix camera tests leaving files behind
* Make emulated_hue tests not leave files behind
* Make logbook tests not leave files behind
* Make tts tests not leave files behind
* Make image_processing tests not leave files behind
* Make manual_mqtt tests not leave files behind
2020-01-14 13:03:02 -08:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Ville Skyttä
445fd15f76
Drop Python 3.6 support ( #29978 )
2019-12-16 07:29:19 +01:00
Pascal Vizeli
0c796fc3c3
Remove uvloop event policy ( #29835 )
...
* Remove uvloop event policy
* Clean tests
* Fix lint
* Cleanup statment
2019-12-11 13:28:50 +01:00
Bas Nijholt
67c56c860d
Sort imports according to PEP8 for 'homeassistant' folder ( #29789 )
...
Components are already done
2019-12-09 16:42:10 +01:00
Ville Skyttä
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
1f03508bfe
Removes unnecessary print_function future import ( #26888 )
2019-09-24 21:29:57 -07:00
Franck Nijhof
0df1b4c7a1
Replaces IOError by OSError ( #26428 )
2019-09-04 19:09:24 +02:00
Franck Nijhof
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
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Paulus Schoutsen
5c91a6cd48
Fix open-ui cli arg ( #26091 )
...
* Fix open-ui cli command
* Align add_job typing with async_add_job
2019-08-20 21:43:50 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Ville Skyttä
3cf8964c06
Python < 3.6 remainder cleanups ( #25607 )
2019-07-31 12:21:15 -07:00
Paulus Schoutsen
cc13713abd
No longer rely on requests ( #23685 )
...
* No longer rely on requests
* Lint
* Missed a few parts
* Fix types
* Fix more types
* Update __main__.py
* Fix tests
* Lint
* Fix script
2019-05-08 11:15:04 -07:00
Paulus Schoutsen
37706c2731
Lint
2018-10-02 10:35:00 +02:00
Paulus Schoutsen
1decba0052
Proactor policy fix ( #17066 )
...
* Proactor policy fix
* Backport Proactor policy for <py37
2018-10-02 09:55:37 +02:00
Paulus Schoutsen
5613816476
Fix Windows loop ( #16737 )
...
* Fix Windows loop
* Fix windows Ctrl+C
* Move windows restart handler out of setup_and_run_hass
2018-09-22 09:54:37 +02:00
Matthias Urlichs
0121e3cb04
Remove usage of "run_until_complete" ( #16617 )
...
* De-run_forever()-ization
* Use asyncio.run (or our own implementation on Python <3.7)
* hass.start is only used by tests
* setup_and_run_hass() is now async
* Add "main" async hass.run method
* move SIGINT handling to helpers/signal.py
* add flag to .run to disable hass's signal handlers
* Teach async_start and async_stop to not step on each other
(more than necessary)
* shorten over-long lines
* restore missing "import asyncio"
* move run_asyncio to homeassistant.util.async_
* LOGGER: warn => warning
* Add "force" flag to async_stop
only useful for testing
* Add 'attrs==18.2.0' to requirements_all.txt
Required for keeping requirements_test_all.txt in sync, where it is in
turn required to prevent auto-downgrading "attrs" during "pip install"
* Fixes for mypy
* Fix "mock_signal" fixture
* Revert mistaken edit
* Flake8 fixes
* mypy fixes
* pylint fix
* Revert adding attrs== to requirements_test*.txt
solved by using "pip -c"
* Rename "run" to "async_run", as per calling conventions
2018-09-19 15:40:02 +02:00
Ville Skyttä
ee696643cd
Isort preparations ( #16555 )
...
* Don't treat typing as an "in-between" module for import order
That was a < 3.5 era thing.
* Tighten scope of some pylint unused-import disables
To avoid isort moving a top level one around, undesirably broadening its
scope.
2018-09-11 11:21:48 +02:00
Andrey
140a874917
Add typing to homeassistant/*.py and homeassistant/util/ ( #15569 )
...
* Add typing to homeassistant/*.py and homeassistant/util/
* Fix wrong merge
* Restore iterable in OrderedSet
* Fix tests
2018-07-23 10:24:39 +02:00
Ville Skyttä
2781796d9c
Remove some unused imports ( #15529 )
2018-07-18 10:46:14 +02:00
Andrey
24d2261060
Add check_untyped_defs ( #15510 )
...
* Add check_untyped_defs
* Change to regular if-else
2018-07-18 00:28:44 +02:00
Andrey
c2fe0d0120
Make typing checks more strict ( #14429 )
...
## Description:
Make typing checks more strict: add `--strict-optional` flag that forbids implicit None return type. This flag will become default in the next version of mypy (0.600)
Add `homeassistant/util/` to checked dirs.
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-13 13:24:51 +03:00