Files
core/tests/components
xLarryandGitHub 7ada2f864c Add sensor platform to laundrify integration (#121378)
* feat: initial implementation of sensor platform

* refactor(tests): await setup of config_entry in parent function

* feat(tests): add tests for laundrify sensor platform

* refactor: set name property for laundrify binary_sensor

* refactor(tests): add missing type hints

* refactor(tests): remove global change of the logging level

* refactor: address minor changes from code review

* refactor(tests): transform setup_config_entry into fixture

* refactor: leverage entity descriptions to define common entity properties

* refactor: change native unit to Wh

* fix(tests): use fixture to create the config entry

* fix: remove redundant raise of LaundrifyDeviceException

* fix(tests): raise a LaundrifyDeviceException to test the update failure behavior

* refactor(tests): merge several library fixtures into a single one

* refactor(tests): create a separate UpdateCoordinator instead of using the internal

* refactor(tests): avoid using LaundrifyPowerSensor

* refactor: simplify value retrieval by directly accessing the coordinator

* refactor: remove non-raising code from try-block

* refactor(sensor): revert usage of entity descriptions

* refactor(sensor): consolidate common attributes and init func to LaundrifyBaseSensor

* refactor(sensor): instantiate DeviceInfo obj instead of using dict

* refactor(tests): use freezer to trigger coordinator update

* refactor(tests): assert on entity state instead of coordinator

* refactor(tests): make use of freezer

* chore(tests): typo in comment
2024-09-16 16:21:16 +02:00
..
2024-08-12 13:28:09 +02:00
2024-07-04 21:27:56 +02:00
2024-08-12 13:28:09 +02:00
2024-09-05 19:42:50 -04:00
2024-06-08 17:59:08 +02:00
2024-08-28 19:16:05 +02:00
2024-08-15 18:21:07 +02:00
2024-06-28 10:46:02 +02:00
2024-08-12 13:28:09 +02:00
2024-09-04 15:33:23 +02:00
2024-07-10 21:53:11 +02:00
2024-08-16 16:54:20 +02:00
2024-09-04 21:57:37 +02:00
2024-06-08 17:59:08 +02:00
2024-08-30 16:41:48 +02:00
2024-09-03 21:00:44 +02:00
2024-09-13 06:42:32 +02:00
2024-08-29 07:59:07 +02:00
2024-06-08 17:59:08 +02:00
2024-09-07 12:38:59 +02:00
2024-09-13 06:42:32 +02:00
2024-08-12 13:28:09 +02:00
2024-06-08 17:59:08 +02:00
2024-08-08 08:59:30 +02:00
2024-08-28 09:25:56 +02:00
2024-06-30 20:38:35 +02:00
2024-06-08 17:59:08 +02:00
2024-08-12 13:28:09 +02:00
2024-09-10 22:02:46 +02:00
2024-07-22 13:09:08 +02:00
2024-09-05 23:03:50 +02:00
2024-06-08 17:59:08 +02:00
2024-07-24 20:37:38 +02:00
2024-08-15 10:03:03 +02:00
2024-09-13 06:42:32 +02:00