hass-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
test_api_streams.py
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
test_command_line.py
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
test_dyson.py
test_efergy.py
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
test_file.py
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
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
test_imap_email_content.py
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
test_mfi.py
test_mhz19.py
test_min_max.py min_max sensor support for STATE_UNAVAILABLE 2019-01-10 13:48:24 +01:00
test_moldindicator.py
test_moon.py
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
test_openhardwaremonitor.py Use unicode slugify (#19192) 2018-12-17 07:51:13 +01:00
test_pilight.py
test_radarr.py
test_random.py
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
test_ring.py Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
test_rmvtransport.py
test_season.py
test_sigfox.py
test_simulated.py
test_sleepiq.py Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
test_sonarr.py
test_sql.py
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
test_teksavvy.py
test_template.py
test_time_date.py
test_transport_nsw.py Add destination and icon (#18210) 2018-11-05 08:27:20 +01:00
test_uk_transport.py
test_uptime.py
test_version.py
test_vultr.py Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
test_worldclock.py
test_wsdot.py
test_wunderground.py
test_yr.py
test_yweather.py