Bump ring_doorbell to 0.8.10 (#114865)

This commit is contained in:
Steven B 2024-04-06 10:49:30 +01:00 committed by GitHub
parent 0d66d298ec
commit e85b9faa00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 12 additions and 14 deletions

View file

@ -52,6 +52,6 @@ class RingDoorButton(RingEntity, ButtonEntity):
self._attr_unique_id = f"{device.id}-{description.key}"
@exception_wrap
def press(self) -> None:
def press(self):
"""Open the door."""
self._device.open_door()

View file

@ -132,7 +132,7 @@ class RingCam(RingEntity, Camera):
finally:
await stream.close()
async def async_update(self) -> None:
async def async_update(self):
"""Update camera entity and refresh attributes."""
if (
self._device.has_capability(MOTION_DETECTION_CAPABILITY)
@ -160,7 +160,7 @@ class RingCam(RingEntity, Camera):
self._expires_at = FORCE_REFRESH_INTERVAL + utcnow
@exception_wrap
def _get_video(self) -> str:
def _get_video(self):
return self._device.recording_url(self._last_event["id"])
@exception_wrap

View file

@ -4,7 +4,7 @@ from datetime import timedelta
import logging
from typing import Any
from ring_doorbell import RingGeneric, RingStickUpCam
from ring_doorbell import RingStickUpCam
from homeassistant.components.light import ColorMode, LightEntity
from homeassistant.config_entries import ConfigEntry
@ -55,7 +55,7 @@ class RingLight(RingEntity, LightEntity):
_attr_supported_color_modes = {ColorMode.ONOFF}
_attr_translation_key = "light"
def __init__(self, device: RingGeneric, coordinator) -> None:
def __init__(self, device, coordinator):
"""Initialize the light."""
super().__init__(device, coordinator)
self._attr_unique_id = device.id

View file

@ -14,5 +14,5 @@
"iot_class": "cloud_polling",
"loggers": ["ring_doorbell"],
"quality_scale": "silver",
"requirements": ["ring-doorbell[listen]==0.8.9"]
"requirements": ["ring-doorbell[listen]==0.8.10"]
}

View file

@ -1,9 +1,7 @@
"""Component providing HA Siren support for Ring Chimes."""
import logging
from typing import Any
from ring_doorbell import RingGeneric
from ring_doorbell.const import CHIME_TEST_SOUND_KINDS, KIND_DING
from homeassistant.components.siren import ATTR_TONE, SirenEntity, SirenEntityFeature
@ -37,18 +35,18 @@ async def async_setup_entry(
class RingChimeSiren(RingEntity, SirenEntity):
"""Creates a siren to play the test chimes of a Chime device."""
_attr_available_tones = CHIME_TEST_SOUND_KINDS
_attr_available_tones = list(CHIME_TEST_SOUND_KINDS)
_attr_supported_features = SirenEntityFeature.TURN_ON | SirenEntityFeature.TONES
_attr_translation_key = "siren"
def __init__(self, device: RingGeneric, coordinator: RingDataCoordinator) -> None:
def __init__(self, device, coordinator: RingDataCoordinator) -> None:
"""Initialize a Ring Chime siren."""
super().__init__(device, coordinator)
# Entity class attributes
self._attr_unique_id = f"{self._device.id}-siren"
@exception_wrap
def turn_on(self, **kwargs: Any) -> None:
def turn_on(self, **kwargs):
"""Play the test sound on a Ring Chime device."""
tone = kwargs.get(ATTR_TONE) or KIND_DING

View file

@ -62,7 +62,7 @@ class SirenSwitch(BaseRingSwitch):
_attr_translation_key = "siren"
def __init__(self, device: RingGeneric, coordinator: RingDataCoordinator) -> None:
def __init__(self, device, coordinator: RingDataCoordinator) -> None:
"""Initialize the switch for a device with a siren."""
super().__init__(device, coordinator, "siren")
self._no_updates_until = dt_util.utcnow()

View file

@ -2451,7 +2451,7 @@ rfk101py==0.0.1
rflink==0.0.66
# homeassistant.components.ring
ring-doorbell[listen]==0.8.9
ring-doorbell[listen]==0.8.10
# homeassistant.components.fleetgo
ritassist==0.9.2

View file

@ -1894,7 +1894,7 @@ reolink-aio==0.8.9
rflink==0.0.66
# homeassistant.components.ring
ring-doorbell[listen]==0.8.9
ring-doorbell[listen]==0.8.10
# homeassistant.components.roku
rokuecp==0.19.2