core/tests/components/demo
rianadon 09af85c6a4
Add native unit types for weather entities (#59533)
* Add native unit types for weather entities

* Update weatherentity and change precision in climacell test

* Move weather test to demo tests

* Add weather test for temperature conversion

* Add more unit conversion tests

* Remove extra native_ methods

* Remove extra properties and save precision change for another PR

* Remove visibility_unit from metoffice component

The vibility values given by metoffice are formatted into strings,
which means they can't automatically be converted.

* Improve docstrings and convert pressures in forecast

* Add precipitation and wind speed units

* Clean up tests

* Round converted weather values

* Round weather values to 2 decimal places

* Move number of rounding decimal places to constant

* Docstring and styles
2021-11-29 14:44:44 +01:00
..
__init__.py
conftest.py Add Blueprint foundation to Scripts (#48621) 2021-04-27 15:15:38 -07:00
test_button.py Add Button entity component platform (#57642) 2021-11-04 16:50:43 +01:00
test_calendar.py
test_camera.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_climate.py Yoda assertion style removed is (#48142) 2021-03-20 13:55:10 +01:00
test_cover.py Do async_setup_platform in background (#36244) 2020-05-31 22:18:30 -07:00
test_fan.py Implement percentage step sizes for fans (#46512) 2021-02-18 21:05:09 -10:00
test_geo_location.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_humidifier.py Clean up constants (#46948) 2021-03-02 12:52:00 +01:00
test_init.py Use contextlib.suppress where possible (#48189) 2021-03-23 14:36:43 +01:00
test_light.py Add color_mode to demo light (#49694) 2021-04-29 10:45:17 +02:00
test_lock.py Update lock entity to support locking, unlocking, jammed (#51455) 2021-07-20 18:12:56 +02:00
test_media_player.py Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[de]* (#57990) 2021-10-22 16:28:56 +02:00
test_notify.py Use async_capture_events to avoid running in executor (#47111) 2021-02-26 13:28:52 -08:00
test_number.py Add auto slider/box mode to number entity (#57737) 2021-10-21 07:20:39 +02:00
test_remote.py Rewrite demo unittest tests to pytest style test functions (#41845) 2020-10-19 23:29:44 +02:00
test_select.py Add Select entity component platform (#51849) 2021-06-18 11:51:55 +02:00
test_siren.py Validate tone is valid when processing siren.turn_on service call (#52953) 2021-07-13 10:42:35 +02:00
test_stt.py Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[de]* (#57990) 2021-10-22 16:28:56 +02:00
test_switch.py Demo: remove deprecated switch entity properties (#52424) 2021-07-02 17:50:57 +02:00
test_vacuum.py Do async_setup_platform in background (#36244) 2020-05-31 22:18:30 -07:00
test_water_heater.py Do async_setup_platform in background (#36244) 2020-05-31 22:18:30 -07:00
test_weather.py Add native unit types for weather entities (#59533) 2021-11-29 14:44:44 +01:00