core/tests/components/recorder
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
..
auto_repairs
table_managers
__init__.py
common.py
conftest.py
db_schema_0.py
db_schema_9.py
db_schema_16.py
db_schema_18.py
db_schema_22.py
db_schema_23.py
db_schema_23_with_newer_columns.py
db_schema_25.py
db_schema_28.py
db_schema_30.py
db_schema_32.py
db_schema_42.py
db_schema_43.py
test_backup.py
test_entity_registry.py
test_filters.py
test_filters_with_entityfilter.py
test_filters_with_entityfilter_schema_37.py
test_history.py
test_history_db_schema_32.py
test_history_db_schema_42.py
test_init.py
test_migrate.py Correct condition signalling non-live DB migration is in progress (#129464) 2024-10-29 12:26:52 -10:00
test_migration_from_schema_32.py Correct condition signalling non-live DB migration is in progress (#129464) 2024-10-29 12:26:52 -10:00
test_migration_run_time_migrations_remember.py
test_models.py
test_models_legacy.py
test_pool.py
test_purge.py
test_purge_v32_schema.py
test_statistics.py
test_statistics_v23_migration.py
test_system_health.py
test_util.py
test_v32_migration.py
test_websocket_api.py Area units and conversion between metric and US (#123563) 2024-11-21 16:10:44 +01:00