hass-core/tests
RJPoelstra 2c2e6171e2
Add integration for Vogel's MotionMount (#103498)
* Skeleton for Vogel's MotionMount support.

* Generated updates.

* Add validation of the discovered information.

* Add manual configuration

* Use a mac address as a unique id

* Add tests for config_flow

* Add a 'turn' sensor entity.

* Add all needed sensors.

* Add number and select entity for control of MotionMount

* Update based on development checklist

* Preset selector now updates when a preset is chosen

* Fix adding presets selector to device

* Remove irrelevant TODO

* Bump python-MotionMount requirement

* Invert direction of turn slider

* Prepare for PR

* Make sure entities have correct values when created

* Use device's mac address as unique id for entities.

* Fix missing files in .coveragerc

* Remove typing ignore from device library.

Improved typing also gave rise to the need to improve the callback mechanism

* Improve typing

* Convert property to shorthand form

* Remove unneeded CONF_NAME in ConfigEntry

* Add small comment

* Refresh coordinator on notification from MotionMount

* Use translation for entity

* Bump python-MotionMount

* Raise `ConfigEntryNotReady` when connect fails

* Use local variable

* Improve exception handling

* Reduce duplicate code

* Make better use of constants

* Remove unneeded callback

* Remove other occurrence of unneeded callback

* Improve removal of suffix

* Catch 'getaddrinfo' exception

* Add config flow tests for invalid hostname

* Abort if device with same hostname is already configured

* Make sure we connect to a device with the same unique id as configured

* Convert function names to snake_case

* Remove unneeded commented-out code

* Use tuple

* Make us of config_entry id when mac is missing

* Prevent update of entities when nothing changed

* Don't store data in `hass.data` until we know we will proceed

* Remove coordinator

* Handle situation where mac is EMPTY_MAC

* Disable polling

* Fix failing hassfest

* Avoid calling unique-id-less discovery handler for situations where we've an unique id
2023-12-22 12:04:58 +01:00
..
auth Migrate auth tests to use freezegun (#105243) 2023-12-07 21:18:10 +01:00
components Add integration for Vogel's MotionMount (#103498) 2023-12-22 12:04:58 +01:00
fixtures Add domain key config validation (#104242) 2023-12-05 15:07:32 +01:00
hassfest
helpers Deprecate deprecated device_registry helper constants (#106227) 2023-12-22 11:21:45 +01:00
pylint Add pylint plugin to check for calls to base implementation (#100432) 2023-09-18 13:39:36 -05:00
resources
scripts Use modern platform path when reporting platform config errors (#104238) 2023-12-05 15:06:13 +01:00
snapshots Add minor version to config entries (#105479) 2023-12-12 08:44:35 +01:00
test_util Extend auth/providers endpoint and add /api/person/list endpoint for local ip requests (#103906) 2023-11-24 17:11:54 +01:00
testing_config Deprecate deprecated alarm control panel constants (#106058) 2023-12-20 18:41:17 +01:00
util Reduce overhead to connect dispatcher (#105715) 2023-12-16 10:16:58 +01:00
__init__.py
common.py Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080) 2023-12-20 23:55:09 +01:00
conftest.py Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080) 2023-12-20 23:55:09 +01: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 Add minor version to config entries (#105479) 2023-12-12 08:44:35 +01:00
test_config.py Deprecate legacy_templates (#105556) 2023-12-22 00:42:16 +01:00
test_config_entries.py Add minor version to config entries (#105479) 2023-12-12 08:44:35 +01:00
test_core.py Migrate non-component tests to use freezegun/freezer (#105142) 2023-12-07 22:58:09 +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 Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
test_runner.py Trigger Home Assistant shutdown automations right before the stop event instead of during it (#91165) 2023-12-05 11:24:41 -10:00
test_setup.py Reverse component path (#104087) 2023-12-05 08:43:58 +01:00
test_test_fixtures.py Patch aiohttp server app router freeze in tests (#105555) 2023-12-12 14:40:38 +01:00
typing.py