Skip to content

Commit

Permalink
Bump pyunifiprotect to 4.6.1 (home-assistant#85547)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngellusMortis authored Jan 9, 2023
1 parent b6316b4 commit 818253c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/unifiprotect/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class ProtectBinaryEventEntityDescription(
name="Doorbell",
device_class=BinarySensorDeviceClass.OCCUPANCY,
icon="mdi:doorbell-video",
ufp_required_field="feature_flags.has_chime",
ufp_required_field="feature_flags.is_doorbell",
ufp_value="is_ringing",
ufp_event_obj="last_ring_event",
),
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/unifiprotect/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"integration_type": "hub",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/unifiprotect",
"requirements": ["pyunifiprotect==4.6.0", "unifi-discovery==1.1.7"],
"requirements": ["pyunifiprotect==4.6.1", "unifi-discovery==1.1.7"],
"dependencies": ["http", "repairs"],
"codeowners": ["@briis", "@AngellusMortis", "@bdraco"],
"quality_scale": "platinum",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/unifiprotect/media_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ async def _build_camera(
if camera is None:
raise BrowseError(f"Unknown Camera ID: {camera_id}")
name = camera.name or camera.market_name or camera.type
is_doorbell = camera.feature_flags.has_chime
is_doorbell = camera.feature_flags.is_doorbell
has_smart = camera.feature_flags.has_smart_detect

thumbnail_url: str | None = None
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/unifiprotect/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _get_alarm_sound(obj: Sensor) -> str:
name="Last Doorbell Ring",
device_class=SensorDeviceClass.TIMESTAMP,
icon="mdi:doorbell-video",
ufp_required_field="feature_flags.has_chime",
ufp_required_field="feature_flags.is_doorbell",
ufp_value="last_ring",
entity_registry_enabled_default=False,
),
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ pytrafikverket==0.2.2
pyudev==0.23.2

# homeassistant.components.unifiprotect
pyunifiprotect==4.6.0
pyunifiprotect==4.6.1

# homeassistant.components.uptimerobot
pyuptimerobot==22.2.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ pytrafikverket==0.2.2
pyudev==0.23.2

# homeassistant.components.unifiprotect
pyunifiprotect==4.6.0
pyunifiprotect==4.6.1

# homeassistant.components.uptimerobot
pyuptimerobot==22.2.0
Expand Down
1 change: 1 addition & 0 deletions tests/components/unifiprotect/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def doorbell_fixture(camera: Camera, fixed_now: datetime):
doorbell.feature_flags.has_lcd_screen = True
doorbell.feature_flags.has_speaker = True
doorbell.feature_flags.has_privacy_mask = True
doorbell.feature_flags.is_doorbell = True
doorbell.feature_flags.has_chime = True
doorbell.feature_flags.has_smart_detect = True
doorbell.feature_flags.has_package_camera = True
Expand Down

0 comments on commit 818253c

Please sign in to comment.