Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ring_doorbell/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def from_name(name: str) -> RingCapability:
STICKUP_CAM_ELITE_KINDS = ["stickup_cam_elite", "stickup_cam_wired"]
STICKUP_CAM_WIRED_KINDS = STICKUP_CAM_ELITE_KINDS # Deprecated
STICKUP_CAM_GEN3_KINDS = ["cocoa_camera"]
OUTDOOR_CAM_PLUS_KINDS = ["5CCEAB"]
BEAM_KINDS = ["beams_ct200_transformer"]

INTERCOM_KINDS = ["intercom_handset_audio", "intercom_handset_video"]
Expand Down
6 changes: 6 additions & 0 deletions ring_doorbell/stickup_cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
STICKUP_CAM_BATTERY_KINDS,
STICKUP_CAM_ELITE_KINDS,
STICKUP_CAM_GEN3_KINDS,
OUTDOOR_CAM_PLUS_KINDS,
STICKUP_CAM_KINDS,
RingCapability,
)
Expand Down Expand Up @@ -78,6 +79,8 @@ def model(self) -> str: # noqa: C901, PLR0911, PLR0912
return "Stick Up Cam Wired"
if self.kind in STICKUP_CAM_GEN3_KINDS:
return "Stick Up Cam (3rd Gen)"
if self.kind in OUTDOOR_CAM_PLUS_KINDS:
return "Outdoor Cam Plus"
_LOGGER.error("Unknown kind: %s", self.kind)
return "Unknown Stickup Cam"

Expand All @@ -96,6 +99,7 @@ def has_capability(self, capability: RingCapability | str) -> bool:
+ STICKUP_CAM_KINDS
+ STICKUP_CAM_BATTERY_KINDS
+ STICKUP_CAM_GEN3_KINDS
+ OUTDOOR_CAM_PLUS_KINDS
)
if capability == RingCapability.LIGHT:
return self.kind in (
Expand All @@ -122,6 +126,7 @@ def has_capability(self, capability: RingCapability | str) -> bool:
+ STICKUP_CAM_BATTERY_KINDS
+ STICKUP_CAM_ELITE_KINDS
+ STICKUP_CAM_GEN3_KINDS
+ OUTDOOR_CAM_PLUS_KINDS
)
if capability in [RingCapability.MOTION_DETECTION, RingCapability.VIDEO]:
return self.kind in (
Expand All @@ -139,6 +144,7 @@ def has_capability(self, capability: RingCapability | str) -> bool:
+ STICKUP_CAM_BATTERY_KINDS
+ STICKUP_CAM_ELITE_KINDS
+ STICKUP_CAM_GEN3_KINDS
+ OUTDOOR_CAM_PLUS_KINDS
)
return False

Expand Down