hass-core/tests
Yuxin Wang 33c5d1855d
Rewrite APCUPSD sensors using DataUpdateCoordinator (#88467)
* Add test sensor.

* Fix sensor test file name.

* Add binary sensor test.

* Fix comments and styling.

* Remove apcupsd from omissions in coveragerc.

* Revert "Remove apcupsd from omissions in coveragerc."

This reverts commit 66b05fcb8829619a771a650a3d70174089e15d91.

* Implement the data coordinator for apcupsd.

* Add tests for sensor updates and throttles.

* Reorder the statement for better code clarity.

* Update docstring.

* Add more tests for checking if the coordinator works ok.

* Implement a custom debouncer with 5 second cooldown for the coordinator.

* Add more tests for checking if our integration is able to properly mark entity's availability.

* Make apcupsd a silver integration.

* Try to fix non-deterministic test behaviors

* Fix JSON format

* Use new `with` format in python 3.10 for better readability

* Update tests.

* Rebase and simplify code.

* Add an ups prefix to the property methods of the coordinator

* Replace init_integration with async_init_integration

* Lint fixes

* Fix imports

* Update BinarySensor implementation to add initial update of attributes

* Fix test failures due to rebases

* Reorder the statements for better code clarity

* Fix incorrect references to the ups_name property

* Simplify BinarySensor value getter code

* No need to update when adding coordinator-controlled sensors
2023-11-21 22:40:05 +01:00
..
auth Avoid conversion of timestamps in jwt auth (#101856) 2023-10-13 14:11:17 +02:00
components Rewrite APCUPSD sensors using DataUpdateCoordinator (#88467) 2023-11-21 22:40:05 +01:00
fixtures Improve formatting of package errors (#103976) 2023-11-16 09:08:47 +01:00
hassfest
helpers Rename some check_config test cases (#104244) 2023-11-20 13:02:44 +01:00
pylint Add pylint plugin to check for calls to base implementation (#100432) 2023-09-18 13:39:36 -05:00
resources
scripts Differentiate between warnings and errors in check_config helper (#102902) 2023-11-05 03:08:04 +01:00
snapshots Small improvement of config tests (#104243) 2023-11-20 14:15:29 +01:00
test_util Bump aiohttp to 3.9.0rc0 for python 3.12 only (#103507) 2023-11-15 01:02:14 +01:00
testing_config Cleanup weather test (#103090) 2023-11-03 05:53:38 +01:00
util Fix including yaml files with scalar values (#103914) 2023-11-13 15:23:50 +01:00
__init__.py
common.py Remove mock_entity_platform test helper (#104073) 2023-11-16 16:55:08 +01:00
conftest.py Fix zeroconf mocking (#104144) 2023-11-17 16:20:54 -06:00
ignore_uncaught_exceptions.py
patch_time.py
ruff.toml
syrupy.py Use cached_property in device registry (#100309) 2023-09-13 15:36:07 -05:00
test_bootstrap.py Remove mock_entity_platform test helper (#104073) 2023-11-16 16:55:08 +01:00
test_config.py Small improvement of config tests (#104243) 2023-11-20 14:15:29 +01:00
test_config_entries.py Remove mock_entity_platform test helper (#104073) 2023-11-16 16:55:08 +01:00
test_core.py Avoid looking up the callable type for HassJob when we already know it (#102962) 2023-10-30 12:45:22 +01:00
test_data_entry_flow.py Validate steps in Flowhandler (#102152) 2023-10-19 13:34:10 +02:00
test_exceptions.py
test_loader.py Rename safe mode to recovery mode (#102580) 2023-10-23 20:33:08 +02:00
test_main.py
test_requirements.py Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
test_runner.py
test_setup.py Quote domain name in setup logs (#104239) 2023-11-20 12:55:16 +01:00
test_test_fixtures.py
typing.py