mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Bump ring_doorbell to 0.8.10 (#114865)
This commit is contained in:
parent
0d66d298ec
commit
e85b9faa00
@ -52,6 +52,6 @@ class RingDoorButton(RingEntity, ButtonEntity):
|
|||||||
self._attr_unique_id = f"{device.id}-{description.key}"
|
self._attr_unique_id = f"{device.id}-{description.key}"
|
||||||
|
|
||||||
@exception_wrap
|
@exception_wrap
|
||||||
def press(self) -> None:
|
def press(self):
|
||||||
"""Open the door."""
|
"""Open the door."""
|
||||||
self._device.open_door()
|
self._device.open_door()
|
||||||
|
@ -132,7 +132,7 @@ class RingCam(RingEntity, Camera):
|
|||||||
finally:
|
finally:
|
||||||
await stream.close()
|
await stream.close()
|
||||||
|
|
||||||
async def async_update(self) -> None:
|
async def async_update(self):
|
||||||
"""Update camera entity and refresh attributes."""
|
"""Update camera entity and refresh attributes."""
|
||||||
if (
|
if (
|
||||||
self._device.has_capability(MOTION_DETECTION_CAPABILITY)
|
self._device.has_capability(MOTION_DETECTION_CAPABILITY)
|
||||||
@ -160,7 +160,7 @@ class RingCam(RingEntity, Camera):
|
|||||||
self._expires_at = FORCE_REFRESH_INTERVAL + utcnow
|
self._expires_at = FORCE_REFRESH_INTERVAL + utcnow
|
||||||
|
|
||||||
@exception_wrap
|
@exception_wrap
|
||||||
def _get_video(self) -> str:
|
def _get_video(self):
|
||||||
return self._device.recording_url(self._last_event["id"])
|
return self._device.recording_url(self._last_event["id"])
|
||||||
|
|
||||||
@exception_wrap
|
@exception_wrap
|
||||||
|
@ -4,7 +4,7 @@ from datetime import timedelta
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from ring_doorbell import RingGeneric, RingStickUpCam
|
from ring_doorbell import RingStickUpCam
|
||||||
|
|
||||||
from homeassistant.components.light import ColorMode, LightEntity
|
from homeassistant.components.light import ColorMode, LightEntity
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
@ -55,7 +55,7 @@ class RingLight(RingEntity, LightEntity):
|
|||||||
_attr_supported_color_modes = {ColorMode.ONOFF}
|
_attr_supported_color_modes = {ColorMode.ONOFF}
|
||||||
_attr_translation_key = "light"
|
_attr_translation_key = "light"
|
||||||
|
|
||||||
def __init__(self, device: RingGeneric, coordinator) -> None:
|
def __init__(self, device, coordinator):
|
||||||
"""Initialize the light."""
|
"""Initialize the light."""
|
||||||
super().__init__(device, coordinator)
|
super().__init__(device, coordinator)
|
||||||
self._attr_unique_id = device.id
|
self._attr_unique_id = device.id
|
||||||
|
@ -14,5 +14,5 @@
|
|||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["ring_doorbell"],
|
"loggers": ["ring_doorbell"],
|
||||||
"quality_scale": "silver",
|
"quality_scale": "silver",
|
||||||
"requirements": ["ring-doorbell[listen]==0.8.9"]
|
"requirements": ["ring-doorbell[listen]==0.8.10"]
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
"""Component providing HA Siren support for Ring Chimes."""
|
"""Component providing HA Siren support for Ring Chimes."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
from ring_doorbell import RingGeneric
|
|
||||||
from ring_doorbell.const import CHIME_TEST_SOUND_KINDS, KIND_DING
|
from ring_doorbell.const import CHIME_TEST_SOUND_KINDS, KIND_DING
|
||||||
|
|
||||||
from homeassistant.components.siren import ATTR_TONE, SirenEntity, SirenEntityFeature
|
from homeassistant.components.siren import ATTR_TONE, SirenEntity, SirenEntityFeature
|
||||||
@ -37,18 +35,18 @@ async def async_setup_entry(
|
|||||||
class RingChimeSiren(RingEntity, SirenEntity):
|
class RingChimeSiren(RingEntity, SirenEntity):
|
||||||
"""Creates a siren to play the test chimes of a Chime device."""
|
"""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_supported_features = SirenEntityFeature.TURN_ON | SirenEntityFeature.TONES
|
||||||
_attr_translation_key = "siren"
|
_attr_translation_key = "siren"
|
||||||
|
|
||||||
def __init__(self, device: RingGeneric, coordinator: RingDataCoordinator) -> None:
|
def __init__(self, device, coordinator: RingDataCoordinator) -> None:
|
||||||
"""Initialize a Ring Chime siren."""
|
"""Initialize a Ring Chime siren."""
|
||||||
super().__init__(device, coordinator)
|
super().__init__(device, coordinator)
|
||||||
# Entity class attributes
|
# Entity class attributes
|
||||||
self._attr_unique_id = f"{self._device.id}-siren"
|
self._attr_unique_id = f"{self._device.id}-siren"
|
||||||
|
|
||||||
@exception_wrap
|
@exception_wrap
|
||||||
def turn_on(self, **kwargs: Any) -> None:
|
def turn_on(self, **kwargs):
|
||||||
"""Play the test sound on a Ring Chime device."""
|
"""Play the test sound on a Ring Chime device."""
|
||||||
tone = kwargs.get(ATTR_TONE) or KIND_DING
|
tone = kwargs.get(ATTR_TONE) or KIND_DING
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class SirenSwitch(BaseRingSwitch):
|
|||||||
|
|
||||||
_attr_translation_key = "siren"
|
_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."""
|
"""Initialize the switch for a device with a siren."""
|
||||||
super().__init__(device, coordinator, "siren")
|
super().__init__(device, coordinator, "siren")
|
||||||
self._no_updates_until = dt_util.utcnow()
|
self._no_updates_until = dt_util.utcnow()
|
||||||
|
@ -2451,7 +2451,7 @@ rfk101py==0.0.1
|
|||||||
rflink==0.0.66
|
rflink==0.0.66
|
||||||
|
|
||||||
# homeassistant.components.ring
|
# homeassistant.components.ring
|
||||||
ring-doorbell[listen]==0.8.9
|
ring-doorbell[listen]==0.8.10
|
||||||
|
|
||||||
# homeassistant.components.fleetgo
|
# homeassistant.components.fleetgo
|
||||||
ritassist==0.9.2
|
ritassist==0.9.2
|
||||||
|
@ -1894,7 +1894,7 @@ reolink-aio==0.8.9
|
|||||||
rflink==0.0.66
|
rflink==0.0.66
|
||||||
|
|
||||||
# homeassistant.components.ring
|
# homeassistant.components.ring
|
||||||
ring-doorbell[listen]==0.8.9
|
ring-doorbell[listen]==0.8.10
|
||||||
|
|
||||||
# homeassistant.components.roku
|
# homeassistant.components.roku
|
||||||
rokuecp==0.19.2
|
rokuecp==0.19.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user