core/tests/components/ecovacs
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
..
fixtures/devices Add device info for legacy Ecovacs bots (#122671) 2024-07-28 11:06:32 +02:00
snapshots Area units and conversion between metric and US (#123563) 2024-11-21 16:10:44 +01:00
__init__.py
conftest.py Move lifespan attributes into own sensors for legacy Ecovacs bots (#122740) 2024-07-31 15:36:57 +02:00
const.py
test_binary_sensor.py Bump deebot-client to 8.0.0 (#119515) 2024-06-13 11:49:20 +02:00
test_button.py Update Ecovacs translations (#122610) 2024-07-25 21:18:42 +02:00
test_config_flow.py Remove deprecated yaml import from Ecovacs (#123605) 2024-08-12 09:09:51 +02:00
test_diagnostics.py Add created_at/modified_at to config entries (#122456) 2024-07-29 22:08:46 +02:00
test_event.py Bump deebot-client to 8.0.0 (#119515) 2024-06-13 11:49:20 +02:00
test_init.py Remove deprecated yaml import from Ecovacs (#123605) 2024-08-12 09:09:51 +02:00
test_lawn_mower.py Bump deebot-client to 8.0.0 (#119515) 2024-06-13 11:49:20 +02:00
test_number.py Add number entity for Ecovacs mower cut direction (#122598) 2024-07-31 12:22:07 +02:00
test_select.py Bump deebot-client to 8.0.0 (#119515) 2024-06-13 11:49:20 +02:00
test_sensor.py Move lifespan attributes into own sensors for legacy Ecovacs bots (#122740) 2024-07-31 15:36:57 +02:00
test_services.py Fix invalid dict annotations in tests (#122178) 2024-07-19 14:45:42 +02:00
test_switch.py Bump deebot-client to 8.0.0 (#119515) 2024-06-13 11:49:20 +02:00
util.py