core/tests/components/sensor
Andrew Hayworth 87a0118082 Do not choke on no awair data (#19708)
* awair: do not choke on no data

The awair API returns an empty response for various air data queries
when a device is offline. The underlying library (python_awair) does
not directly inform us that a device is offline, since we really can
only infer it from an empty response - there is no online/offline
indicator in the graphql API.

So - we should just ensure that we do not attempt to update device state
from an empty response. This ensures that the platform does not crash
when starting up with offline devices, and also ensures that the
platform is marked unavailable once devices go offline.

* Fix typo

Further proof that coding after 10pm is rolling the dice.
2019-01-03 14:41:18 +01: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_awair.py Do not choke on no awair data (#19708) 2019-01-03 14:41:18 +01:00
test_bom.py Cleanup BOM dependencies + add basic test + IDEA autoformat (#18462) 2018-11-21 20:41:53 -05:00
test_canary.py Pytest tests (#17750) 2018-10-24 12:10:05 +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 Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_darksky.py Darksky: Expose missing conditions for day 0 forecast (#18312) 2018-11-19 14:48:52 +01:00
test_deconz.py deCONZ - retry if setup fails (#17772) 2018-10-31 22:38:04 +01:00
test_dsmr.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
test_dte_energy_bridge.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_dyson.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_efergy.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_entur_public_transport.py Add Entur departure information sensor (#17286) 2018-11-30 09:06:59 +01:00
test_fail2ban.py Fix fail2ban by removal of internal timer logic (#19456) 2018-12-22 18:25:02 +01:00
test_fido.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_file.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_filesize.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_filter.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_folder.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_foobot.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_geo_rss_events.py bump georss_client to 0.5 (#19337) 2018-12-16 11:14:36 +01:00
test_google_wifi.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_hddtemp.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_history_stats.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_hydroquebec.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_imap_email_content.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_islamic_prayer_times.py Add new sensor platform to expose Islamic prayer times (#19444) 2018-12-20 22:52:43 +01:00
test_jewish_calendar.py Upgrade hdate to 0.7.5 (#18296) 2018-11-07 13:30:41 +01:00
test_kira.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_london_air.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_mfi.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_mhz19.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_min_max.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_moldindicator.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_moon.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_mqtt.py Correct calls to subscription.async_unsubscribe_topics (#19414) 2018-12-19 14:05:24 +01:00
test_mqtt_room.py Async MQTT sensor room (#17765) 2018-10-24 22:20:52 +02:00
test_nsw_fuel_station.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_openhardwaremonitor.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_pilight.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_radarr.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_random.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_rest.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_rflink.py Improve rflink coverage (#19596) 2019-01-01 15:35:31 +01:00
test_rfxtrx.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_ring.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_rmvtransport.py Make rmvtransport async (#17225) 2018-10-10 08:10:42 +02:00
test_season.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_sigfox.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_simulated.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_sleepiq.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_sonarr.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_sql.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_srp_energy.py Srpenergy (#18036) 2018-11-08 19:19:30 +01:00
test_startca.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_statistics.py Fix statistics for binary sensor (#18764) 2018-11-29 09:01:56 +01: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 still update sensor on startup (#17319) 2018-10-11 11:38:35 +02:00
test_time_date.py add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
test_transport_nsw.py Add destination and icon (#18210) 2018-11-05 08:27:20 +01:00
test_uk_transport.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_uptime.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_version.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_vultr.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_worldclock.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_wsdot.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_wunderground.py WUnderground unique ids (#13311) 2018-05-02 14:23:07 -04:00
test_yr.py Add 'forecast' ability to yr weather sensor (#8650) 2017-08-01 22:42:51 -07:00
test_yweather.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_zwave.py Repair zwave sensor coverage (#6764) 2017-03-23 20:57:15 -07:00