epenet and GitHub
7169d52010
Remove import annotations from core ( #169547 )
2026-04-30 20:34:43 +02:00
J. Nick Koston and GitHub
9b80cf7d94
Prevent multiple Home Assistant instances from running with the same config directory ( #151631 )
2025-09-03 13:13:02 -05:00
Marc Mueller and GitHub
2c13c70e12
Update ruff to 0.12.0 ( #147106 )
2025-06-19 20:39:09 +02:00
Joakim Sørensen and GitHub
31dcc25ba5
Add handler to restore a backup file with the backup integration ( #128365 )
...
* Early pushout of restore handling for core/container
* Adjust after rebase
* Move logging definition, we should only do this if we go ahead with the restore
* First round
* More paths
* Add async_restore_backup to base class
* Block restore of new backup files
* manager tests
* Add websocket test
* Add testing to main
* Add coverage for missing backup file
* Catch FileNotFoundError instead
* Patch Path.read_text instead
* Remove HA_RESTORE from keep
* Use secure paths
* Fix restart test
* extend coverage
* Mock argv
* Adjustments
2024-11-01 16:25:22 +01:00
Paul Donald and GitHub
c979597ec4
Prevent shutdown fault-log trace-back ( #116735 )
...
Closes issue #116710
2024-05-11 07:59:05 +02:00
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <[email protected] >
2024-04-06 11:07:37 +02:00
Marc Mueller and GitHub
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Erik Montnemery and GitHub
97cc05d0b4
Make it possible to restart core in safe mode ( #102606 )
2023-10-24 14:47:58 +02:00
Erik Montnemery and GitHub
c481fdb7d0
Rename safe mode to recovery mode ( #102580 )
2023-10-23 20:33:08 +02:00
Erik Montnemery and GitHub
e484066f2b
Remove dead code from __main__.py ( #98694 )
2023-08-20 10:17:28 +02:00
Franck Nijhof and GitHub
79b52a2b41
Stricter pylint message control ( #86154 )
2023-01-20 13:47:55 +01:00
Ville Skyttä and GitHub
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 and GitHub
8c8994352d
Allow only specific packages to be skipped during startup dependency installation ( #82758 )
2022-11-30 08:38:52 +01:00
c285743621
Validate operating system is supported ( #64352 )
...
Co-authored-by: Paulus Schoutsen <[email protected] >
Co-authored-by: Franck Nijhof <[email protected] >
2022-01-18 13:16:23 -08:00
fbd4eca7b3
Remove --runner option from __main__.py ( #64347 )
...
* Remove --runner option from __main__.py
* Update homeassistant/__main__.py
Co-authored-by: Joakim Sørensen <[email protected] >
* Always check for lingering threads
Co-authored-by: Joakim Sørensen <[email protected] >
2022-01-18 15:18:35 +01:00
Erik Montnemery and GitHub
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 and GitHub
fd955be547
Fix core restart due to change in relative imports ( #64209 )
2022-01-16 13:47:43 -08:00
Erik Montnemery and GitHub
b3421cf727
Remove Windows workarounds ( #64068 )
2022-01-13 20:41:11 +01:00
Ruslan Sayfutdinov and GitHub
55f4962c06
Fix pylint plugin which checks relative imports ( #62693 )
2021-12-23 11:14:47 -08:00
Oscar Calvo and GitHub
c48527858d
Activate fault handler ( #56550 )
2021-09-28 00:05:06 -07:00
Marc Mueller and GitHub
7af67d34cf
Use assignment expressions 01 ( #56394 )
2021-09-18 13:31:35 -10:00
Marc Mueller and GitHub
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 and GitHub
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
Marc Mueller and GitHub
e55702d635
Update typing 01 ( #48013 )
2021-03-17 17:34:55 +01:00
Ville Skyttä and GitHub
6ae9399237
Upgrade isort to 5.4.2 ( #37939 )
2020-08-29 08:23:55 +02:00
f49ce5d1b4
Protect loop set default executor ( #37438 )
...
Co-authored-by: J. Nick Koston <[email protected] >
2020-07-06 15:58:53 -07:00
Franck Nijhof and GitHub
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
springstan and GitHub
fca90a8ddc
Improve string formatting v5 ( #33697 )
...
* Improve string formatting v5
* Address review comments
2020-04-05 17:48:55 +02:00
Franck Nijhof and GitHub
22ae498f3a
Remove redundant open modes ( #33652 )
2020-04-04 22:49:15 +02:00
Franck Nijhof and GitHub
b9b1cee403
Enable pylint import-outside-toplevel ( #33631 )
2020-04-04 17:07:36 +02:00
Paulus Schoutsen and GitHub
4bbc0a03ca
Activate asyncio debug when HA run in debug mode ( #33251 )
2020-03-25 13:03:56 -07:00
Paulus Schoutsen and GitHub
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ä and GitHub
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ä and Paulus Schoutsen
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ä and GitHub
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Ville Skyttä and Paulus Schoutsen
445fd15f76
Drop Python 3.6 support ( #29978 )
2019-12-16 07:29:19 +01:00
Pascal Vizeli and GitHub
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 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
1f03508bfe
Removes unnecessary print_function future import ( #26888 )
2019-09-24 21:29:57 -07:00
Franck Nijhof and Pascal Vizeli
0df1b4c7a1
Replaces IOError by OSError ( #26428 )
2019-09-04 19:09:24 +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
Paulus Schoutsen and Pascal Vizeli
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ä and Paulus Schoutsen
3cf8964c06
Python < 3.6 remainder cleanups ( #25607 )
2019-07-31 12:21:15 -07:00
Paulus Schoutsen and GitHub
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 and GitHub
1decba0052
Proactor policy fix ( #17066 )
...
* Proactor policy fix
* Backport Proactor policy for <py37
2018-10-02 09:55:37 +02:00
Paulus Schoutsen and GitHub
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