core/tests/util
Michael Arthur d8549409f7
Area units and conversion between metric and US (#123563)
* area conversions

* start work on tests

* add number device class

* update unit conversions to utilise distance constants

* add area unit

* update test unit system

* update device condition and trigger

* update statistic unit converters

* further tests work WIP

* update test unit system

* add missing string translations

* fix websocket tests

* add deprecated notice

* add more missing strings and missing initialisation of unit system

* adjust icon and remove strings from scrape and random

* Fix acre to meters conversion

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Tidy up valid units

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* fix ordering of area

* update order alphabetically

* fix broken test

* update test_init

* Update homeassistant/const.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* remove deprecated unit and fix alphabetical order

* change deprecation and add tests, change to millimeter conversion for inches

* fix order

* re-order defs alphabetically

* add measurement as well

* update icons

* fix up Deprecation of area square meters

* Update core integrations to UnitOfArea

* update test recorder tests

* unit system tests in alphabetical

* update snapshot

* rebuild

* revert alphabetization of functions

* other revert of alphabetical order

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-11-21 16:10:44 +01:00
..
snapshots Add scaling utils for brightness and fanspeed (#104753) 2023-12-04 12:10:58 +01:00
yaml Remove deprecated YAML loaders (#130364) 2024-11-11 20:24:51 +01:00
__init__.py
test_aiohttp.py Bump aiohttp to 3.9.1 (#104176) 2023-11-29 16:13:54 +01:00
test_async.py Add ability to set HA breaking version in report_usage (#130858) 2024-11-20 21:41:57 +01:00
test_collection.py Move recorder chunk utils to shared collection utils (#118065) 2024-05-24 12:49:39 -10:00
test_color.py Improve precision of HSV color conversion (#130880) 2024-11-19 22:06:57 +01:00
test_dt.py Fix SIM300 (#120725) 2024-06-28 10:46:02 +02:00
test_enum.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_event_type.py Add improved typing for event fire and listen methods (#114906) 2024-04-07 13:28:24 -10:00
test_executor.py Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
test_file.py Fix unspecified-encoding warnings in tests (#119405) 2024-06-11 17:58:40 +02:00
test_hass_dict.py Add HassDict implementation (#103844) 2024-05-07 10:53:13 +02:00
test_init.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_json.py Cleanup deprecated json utils (#121069) 2024-07-03 15:57:32 +02:00
test_language.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
test_location.py Improve type hints and fix pylint warnings in util tests (#119355) 2024-06-11 15:07:40 +02:00
test_logging.py Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
test_loop.py Adjust Generator type hints in tests (#121013) 2024-07-02 14:12:02 +02:00
test_network.py Add return type to tests without arguments (#87613) 2023-02-07 14:20:06 +01:00
test_package.py Always use uv from virtual environment at runtime (#128371) 2024-10-16 19:42:25 +02:00
test_percentage.py Enable Ruff A001 (#115654) 2024-04-21 23:25:27 +02:00
test_process.py Fix blocking process call in process tests (#121104) 2024-07-03 22:26:03 +02:00
test_read_only_dict.py Add (deep)copy support to read only dict (#118204) 2024-05-26 23:05:45 -04:00
test_scaling.py Add scaling utils for brightness and fanspeed (#104753) 2023-12-04 12:10:58 +01:00
test_ssl.py Add SSL Cipher option to aiohttp async_get_clientsession (#126317) 2024-09-24 21:31:52 +02:00
test_thread.py Add typing to tests with single hass argument (2) (#87675) 2023-02-08 08:51:43 +01:00
test_timeout.py Fix cancellation leaking upward from the timeout util (#129003) 2024-10-23 12:00:01 -10:00
test_ulid.py Add return type to async tests without arguments (#87612) 2023-02-07 10:26:56 +01:00
test_unit_conversion.py Area units and conversion between metric and US (#123563) 2024-11-21 16:10:44 +01:00
test_unit_system.py Area units and conversion between metric and US (#123563) 2024-11-21 16:10:44 +01:00
test_uuid.py Add return type to async tests without arguments (#87612) 2023-02-07 10:26:56 +01:00
test_variance.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00