hass-core/tests/components/binary_sensor
Matthias Urlichs 0121e3cb04 Remove usage of "run_until_complete" ()
* 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 Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_aurora.py Python 3.6 invalid escape sequence deprecation fixes () 2018-01-27 12:16:30 +01:00
test_bayesian.py Fix probability_threshold in binary_sensor.bayesian () (Closes: ) 2018-05-18 07:48:16 +02:00
test_binary_sensor.py binary_sensor sensor_class to entity device_class () 2017-02-10 20:46:15 -08:00
test_command_line.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
test_deconz.py Add config entries to connection class () 2018-09-17 10:12:46 +02:00
test_ffmpeg.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
test_mqtt.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
test_nx584.py add_devices -> add_entities () 2018-08-24 16:37:30 +02:00
test_random.py Add Random binary sensor () 2017-10-29 11:15:57 +01:00
test_rest.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
test_ring.py add_devices -> add_entities () 2018-08-24 16:37:30 +02:00
test_sleepiq.py add_devices -> add_entities () 2018-08-24 16:37:30 +02:00
test_spc.py Remove usage of "run_until_complete" () 2018-09-19 15:40:02 +02:00
test_tcp.py add_devices -> add_entities () 2018-08-24 16:37:30 +02:00
test_template.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
test_threshold.py Properly handle thresholds of zero () 2018-02-06 10:32:56 -08:00
test_trend.py Fix formatting pylint comments in test () 2018-07-13 23:02:23 +02:00
test_vultr.py add_devices -> add_entities () 2018-08-24 16:37:30 +02:00
test_workday.py Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
test_zwave.py Fix off_delay for zwave trigger sensors () 2017-08-06 18:31:32 +03:00