1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-25 00:07:20 +00:00

3 Commits

Author SHA1 Message Date
Erik Montnemery
f83c8de8d3
Update signature of platforms' async_setup_entry () 2025-02-10 21:08:03 +01:00
Steven B.
1697e24068
Add PARALLEL_UPDATES constant to ring integration platforms () 2025-01-24 20:48:55 +01:00
Daniel Krebs
c8e2408f82
Allow setting volume on Ring devices ()
* 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 fc95af66e7136202dca9560325d88b811ec22c45.

* 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