hass-core/tests
Daniel Krebs c8e2408f82
Allow setting volume on Ring devices (#125773)
* Turn Ring Doorbell and Chime volumes into number entities.

* turn RingOther volumes into numbers as well

* fix linter issues

* move other volume strings into `number` section

* add back old volume sensors but deprecate them

* add tests for `ring.number`

* add back strings for sensors that have just become deprecated

* remove deprecated volume sensors from test

* Revert "remove deprecated volume sensors from test"

This reverts commit fc95af66e7.

* create entities for deprecated sensors so that tests still run

* remove print

* add entities immediately

* move `RingNumberEntityDescription` above `RingNumber` and remove unused import

* remove irrelevant comment about history

* fix not using `setter_fn`

* add missing icons for other volume entities

* rename `entity` -> `entity_id` in number tests

* fix typing in number test

* use constants for `hass.services.async_call()`

* use `@refresh_after` decorator instead of delaying updates manually

* move descriptors above entity class

* Use snapshot to test states.

* add missing snapshot file for number platform

* Update homeassistant/components/ring/number.py

Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>

---------

Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
2024-09-17 15:41:51 +02:00
..
auth Remove notify support for templates (#122820) 2024-09-08 17:31:58 +02:00
components Allow setting volume on Ring devices (#125773) 2024-09-17 15:41:51 +02:00
fixtures
hassfest Build hassfest docker image and pushlish it on beta/stable releases (#124706) 2024-08-28 16:38:12 +02:00
helpers Add a syntax for merging lists of triggers (#117698) 2024-09-09 13:51:32 +02:00
non_packaged_scripts
pylint Disable pylint ignore_missing_annotations in config flow (#125322) 2024-09-16 11:53:29 +02:00
resources
script
scripts Add missing hass type in tests/scripts (#124042) 2024-08-16 13:21:39 +02:00
snapshots Add created_at/modified_at to config entries (#122456) 2024-07-29 22:08:46 +02:00
test_util Add missing hass type in tests/test_util (#124043) 2024-08-16 13:43:43 +02:00
testing_config Add MockToggleEntity type hints in tests (#120075) 2024-06-21 12:32:03 +02:00
util Fix uv installing in user site packages (#125808) 2024-09-15 14:53:45 +02:00
__init__.py
common.py Use root import in tests (#125862) 2024-09-13 06:42:32 +02:00
conftest.py Force root import of references from other components (#125816) 2024-09-16 11:28:42 +02:00
ignore_uncaught_exceptions.py
patch_recorder.py Fail tests if recorder creates nested sessions (#122579) 2024-07-25 21:18:55 +02:00
patch_time.py Improve tests/patch_time.py (#122017) 2024-07-16 14:22:22 +02:00
ruff.toml
syrupy.py Add created_at/modified_at to config entries (#122456) 2024-07-29 22:08:46 +02:00
test_backports.py
test_block_async_io.py Add additional blocking operations to loop protection (#124017) 2024-08-16 09:03:24 -05:00
test_bootstrap.py Add missing hass type in tests/*.py (#124048) 2024-08-18 15:42:41 +02:00
test_circular_imports.py
test_config.py Add missing hass type in tests/*.py (#124048) 2024-08-18 15:42:41 +02:00
test_config_entries.py End deprecation setting disabled_by as string (#125646) 2024-09-10 20:39:51 +02:00
test_const.py Fix missing type[..] annotation in tests (#122217) 2024-07-20 11:11:16 +02:00
test_core.py Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
test_data_entry_flow.py Prevent nesting sections in data entry flows (#124645) 2024-08-28 15:42:15 +02:00
test_exceptions.py
test_loader.py Add missing hass type in tests/*.py (#124048) 2024-08-18 15:42:41 +02:00
test_main.py
test_requirements.py Remove recorder from websocket_api after dependencies (#122422) 2024-07-22 16:50:05 -05:00
test_runner.py Replace pylint broad-exception-raised rule with ruff (#123021) 2024-08-02 12:24:03 +02:00
test_setup.py Add missing hass type in tests/*.py (#124048) 2024-08-18 15:42:41 +02:00
test_test_fixtures.py Move fixtures to decorators in core tests (#119675) 2024-06-14 13:32:42 +02:00
typing.py