core/homeassistant/util
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
..
__init__.py Isort preparations (#16555) 2018-09-11 11:21:48 +02:00
async_.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
color.py Add typing to homeassistant/*.py and homeassistant/util/ (#15569) 2018-07-23 10:24:39 +02:00
decorator.py Upgrade pylint to 2.0.1 (#15683) 2018-07-26 08:55:42 +02:00
distance.py Add unit system support 2016-08-04 22:02:19 -07:00
dt.py Isort preparations (#16555) 2018-09-11 11:21:48 +02:00
json.py Add typing to homeassistant/*.py and homeassistant/util/ (#15569) 2018-07-23 10:24:39 +02:00
location.py Add typing to homeassistant/*.py and homeassistant/util/ (#15569) 2018-07-23 10:24:39 +02:00
logging.py Add typing to homeassistant/*.py and homeassistant/util/ (#15569) 2018-07-23 10:24:39 +02:00
package.py Isort preparations (#16555) 2018-09-11 11:21:48 +02:00
ssl.py Switch to intermediate Mozilla cert profile (#15957) 2018-08-14 08:20:17 +02:00
temperature.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
unit_system.py Remove self type hints (#15732) 2018-07-30 12:44:31 +01:00
yaml.py Upgrade pylint to 2.0.1 (#15683) 2018-07-26 08:55:42 +02:00