hass-core/tests/components/sensor
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 Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_api_streams.py Fix up docstring for tests (#5090) 2016-12-28 20:04:59 +02:00
test_arlo.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_bom.py Fix sensor name (fixes #14535) (#14541) 2018-05-19 17:14:53 +02:00
test_canary.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_coinmarketcap.py Add configurable decimal rounding of display value for CoinMarketCap sensor and upgrade to 5.0.3 (#14437) (#14604) 2018-05-25 15:39:04 +02:00
test_command_line.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_darksky.py Add language parameter to darksky sensor (#13297) 2018-03-22 13:34:02 +01:00
test_deconz.py Add config entries to connection class (#16618) 2018-09-17 10:12:46 +02:00
test_dsmr.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
test_dte_energy_bridge.py Fix for DTE Energy Bridge returning the wrong units from time to time (#9246) 2017-09-15 23:12:06 -07:00
test_dyson.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_efergy.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_fail2ban.py Add fail2ban sensor (#9975) 2017-10-23 09:20:45 +02:00
test_fido.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_file.py Added file path validity checks to file sensor (#12505) 2018-03-29 19:47:49 -07:00
test_filesize.py Adds filesize component (#12211) 2018-02-19 23:55:54 -08:00
test_filter.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_folder.py Adds folder sensor (#12208) 2018-02-21 23:21:07 -08:00
test_foobot.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_geo_rss_events.py Add python 3.7 to travis and tox (#14523) 2018-07-07 10:48:02 -04:00
test_google_wifi.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_hddtemp.py Fix source code using Windows newline (#12248) 2018-02-09 08:11:47 +01:00
test_history_stats.py Fix 0 value when home-assistant restarts (#12874) 2018-03-03 22:59:25 +01:00
test_hydroquebec.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_imap_email_content.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_jewish_calendar.py Fix test 2018-09-18 12:15:55 +02:00
test_kira.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_london_air.py Adds London_air component (#9020) 2017-08-19 11:05:16 +02:00
test_london_underground.py Add london_underground (#8272) 2017-07-02 11:32:38 -07:00
test_melissa.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_mfi.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_mhz19.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_min_max.py Add a 'last' mode and attribute to min_max sensor (#11037) 2018-01-18 23:03:41 +01:00
test_moldindicator.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_moon.py Moon translate (#15498) 2018-07-18 10:54:54 +02:00
test_mqtt.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_mqtt_room.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_nsw_fuel_station.py Add sensor.nsw_fuel_station component (#14757) 2018-06-14 13:56:04 +02:00
test_openhardwaremonitor.py Openhardwaremonitor (#8056) 2017-06-25 13:48:05 -07:00
test_pilight.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_radarr.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_random.py Spelling fixes (#12041) 2018-01-29 23:37:19 +01:00
test_rest.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_rflink.py Add availability to Rflink entities. (#14977) 2018-06-16 00:26:48 +02:00
test_rfxtrx.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_ring.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_rmvtransport.py Add RMV public transport sensor (#15814) 2018-08-10 19:35:09 +02:00
test_season.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_sigfox.py Spelling, grammar etc fixes (#14432) 2018-05-13 12:09:28 +02:00
test_simulated.py add relative time option to simulated sensors (#14038) 2018-06-14 14:06:49 -04:00
test_sleepiq.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_sonarr.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_sql.py Convert decimals from SQL results (#13059) 2018-03-10 10:40:28 -08:00
test_startca.py Add New Sensor for ISP Start.ca (#12356) 2018-02-12 19:43:56 -08:00
test_statistics.py Add rate of change to statistics sensor (#15632) 2018-09-08 01:10:08 +02:00
test_tcp.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_teksavvy.py TekSavvy Sensor unlimited bandwidth support (#12325) 2018-02-28 16:21:10 -08:00
test_template.py Grammar and spelling fixes (#16065) 2018-08-19 22:29:08 +02:00
test_time_date.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_uk_transport.py Add uk_transport component. (#8600) 2017-07-26 20:49:52 +01:00
test_uptime.py Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
test_version.py Add version sensor (#8912) 2017-08-12 08:52:56 +02:00
test_vultr.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_worldclock.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_wsdot.py Use ATTR_NAME from const.py (#14450) 2018-05-14 13:05:52 +02:00
test_wunderground.py WUnderground unique ids (#13311) 2018-05-02 14:23:07 -04:00
test_yahoo_finance.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_yr.py Add 'forecast' ability to yr weather sensor (#8650) 2017-08-01 22:42:51 -07:00
test_yweather.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
test_zwave.py Repair zwave sensor coverage (#6764) 2017-03-23 20:57:15 -07:00