core/tests/components/sensor
Willem Burgers 458548daec Fix TypeError (#21734)
* timediff is of type timedelta. Divide by timedelta does not work.

- convert a timedelta to int
- make sure the test inputs real timestamps

* Convert the total_seconds to decimal and round the result

readings are of type Decimal, so fix test to reflect that

* split line into multiple statements

Line too long

* use total_seconds instead of timediff

* Make both values float instead of Decimal
2019-03-09 17:51:15 +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_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 Move components to folders (#20774) 2019-02-05 19:31:15 -08: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 Deprecate conf_update_interval (#20924) 2019-02-17 06:23:09 +01:00
test_dsmr.py Fix TypeError (#21734) 2019-03-09 17:51:15 +01: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 Lint 2019-01-11 16:31:16 -08: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 Fixes the sensor.filter outlier filter (handle step-changes correctly) (#21332) 2019-02-23 13:51:33 +00: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 Change STATE_UNKOWN to None (#20337) 2019-01-24 08:20:20 +01:00
test_hddtemp.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_history_stats.py print() left behind (#20689) 2019-02-02 14:54:46 +01: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_integration.py Add integration method to sensor.integration (#21050) 2019-02-13 20:26:27 -08: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 Add lagging hdate for sensors that should lag to update (#20655) 2019-02-11 23:34:48 +01: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 min_max sensor support for STATE_UNAVAILABLE 2019-01-10 13:48:24 +01: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_room.py Move mqtt_mock to tests/components/mqtt/conftest.py (#20621) 2019-01-31 21:22:29 +01: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 Add timeout option to sensor.rest and binary_sensor.rest. (#20065) 2019-02-26 10:23:46 -08:00
test_rflink.py Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
test_rfxtrx.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_ring.py Move components to folders (#20774) 2019-02-05 19:31:15 -08: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 Move components to folders (#20774) 2019-02-05 19:31:15 -08: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 Move components to folders (#20774) 2019-02-05 19:31:15 -08: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