Add Ring Intercom support (#109819)
* Add button entity * Add support for Ring intercom ("other" device type) * description * format * - Tests - Fallback when intercom devices arent inside response * Fix ring button * Update library * Fix button after merge * Move names to strings.json * Remove button entity_category * Add wifi sensors to other * Add last_ sensors to other * Fix tests * Add button test * Add new sensors tests * Revert "Add last_ sensors to other" This reverts commit5c03bba5a1
. * Update library * Revert "Revert "Add last_ sensors to other"" This reverts commit27631978d0
. * Fix tests * Remove default list for other Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> * Copy mock to conftest * Fix history test * Change time skip * Remove button * Fix history test --------- Co-authored-by: Martin Pham <tuyentq2009@gmail.com> Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
This commit is contained in:
parent
30d1f70468
commit
360f7dea75
12 changed files with 412 additions and 15 deletions
|
@ -31,7 +31,7 @@ BINARY_SENSOR_TYPES: tuple[RingBinarySensorEntityDescription, ...] = (
|
|||
RingBinarySensorEntityDescription(
|
||||
key="ding",
|
||||
translation_key="ding",
|
||||
category=["doorbots", "authorized_doorbots"],
|
||||
category=["doorbots", "authorized_doorbots", "other"],
|
||||
device_class=BinarySensorDeviceClass.OCCUPANCY,
|
||||
),
|
||||
RingBinarySensorEntityDescription(
|
||||
|
@ -56,7 +56,7 @@ async def async_setup_entry(
|
|||
|
||||
entities = [
|
||||
RingBinarySensor(ring, device, notifications_coordinator, description)
|
||||
for device_type in ("doorbots", "authorized_doorbots", "stickup_cams")
|
||||
for device_type in ("doorbots", "authorized_doorbots", "stickup_cams", "other")
|
||||
for description in BINARY_SENSOR_TYPES
|
||||
if device_type in description.category
|
||||
for device in devices[device_type]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue