mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 14:08:20 +00:00
Bump reolink-aio to 0.14.6 (#150055)
This commit is contained in:
@@ -24,7 +24,7 @@ async def async_get_config_entry_diagnostics(
|
|||||||
IPC_cam[ch]["hardware version"] = api.camera_hardware_version(ch)
|
IPC_cam[ch]["hardware version"] = api.camera_hardware_version(ch)
|
||||||
IPC_cam[ch]["firmware version"] = api.camera_sw_version(ch)
|
IPC_cam[ch]["firmware version"] = api.camera_sw_version(ch)
|
||||||
IPC_cam[ch]["encoding main"] = await api.get_encoding(ch)
|
IPC_cam[ch]["encoding main"] = await api.get_encoding(ch)
|
||||||
if (signal := api.wifi_signal(ch)) is not None:
|
if (signal := api.wifi_signal(ch)) is not None and api.wifi_connection(ch):
|
||||||
IPC_cam[ch]["WiFi signal"] = signal
|
IPC_cam[ch]["WiFi signal"] = signal
|
||||||
|
|
||||||
chimes: dict[int, dict[str, Any]] = {}
|
chimes: dict[int, dict[str, Any]] = {}
|
||||||
@@ -43,7 +43,7 @@ async def async_get_config_entry_diagnostics(
|
|||||||
"HTTP(S) port": api.port,
|
"HTTP(S) port": api.port,
|
||||||
"Baichuan port": api.baichuan.port,
|
"Baichuan port": api.baichuan.port,
|
||||||
"Baichuan only": api.baichuan_only,
|
"Baichuan only": api.baichuan_only,
|
||||||
"WiFi connection": api.wifi_connection,
|
"WiFi connection": api.wifi_connection(),
|
||||||
"WiFi signal": api.wifi_signal(),
|
"WiFi signal": api.wifi_signal(),
|
||||||
"RTMP enabled": api.rtmp_enabled,
|
"RTMP enabled": api.rtmp_enabled,
|
||||||
"RTSP enabled": api.rtsp_enabled,
|
"RTSP enabled": api.rtsp_enabled,
|
||||||
|
@@ -19,5 +19,5 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["reolink_aio"],
|
"loggers": ["reolink_aio"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["reolink-aio==0.14.5"]
|
"requirements": ["reolink-aio==0.14.6"]
|
||||||
}
|
}
|
||||||
|
@@ -148,7 +148,7 @@ HOST_SENSORS = (
|
|||||||
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
value=lambda api: api.wifi_signal(),
|
value=lambda api: api.wifi_signal(),
|
||||||
supported=lambda api: api.supported(None, "wifi") and api.wifi_connection,
|
supported=lambda api: api.supported(None, "wifi") and api.wifi_connection(),
|
||||||
),
|
),
|
||||||
ReolinkHostSensorEntityDescription(
|
ReolinkHostSensorEntityDescription(
|
||||||
key="cpu_usage",
|
key="cpu_usage",
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@@ -2666,7 +2666,7 @@ renault-api==0.3.1
|
|||||||
renson-endura-delta==1.7.2
|
renson-endura-delta==1.7.2
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.14.5
|
reolink-aio==0.14.6
|
||||||
|
|
||||||
# homeassistant.components.idteck_prox
|
# homeassistant.components.idteck_prox
|
||||||
rfk101py==0.0.1
|
rfk101py==0.0.1
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@@ -2212,7 +2212,7 @@ renault-api==0.3.1
|
|||||||
renson-endura-delta==1.7.2
|
renson-endura-delta==1.7.2
|
||||||
|
|
||||||
# homeassistant.components.reolink
|
# homeassistant.components.reolink
|
||||||
reolink-aio==0.14.5
|
reolink-aio==0.14.6
|
||||||
|
|
||||||
# homeassistant.components.rflink
|
# homeassistant.components.rflink
|
||||||
rflink==0.0.67
|
rflink==0.0.67
|
||||||
|
@@ -128,7 +128,7 @@ def _init_host_mock(host_mock: MagicMock) -> None:
|
|||||||
host_mock.session_active = True
|
host_mock.session_active = True
|
||||||
host_mock.timeout = 60
|
host_mock.timeout = 60
|
||||||
host_mock.renewtimer.return_value = 600
|
host_mock.renewtimer.return_value = 600
|
||||||
host_mock.wifi_connection = False
|
host_mock.wifi_connection.return_value = False
|
||||||
host_mock.wifi_signal.return_value = -45
|
host_mock.wifi_signal.return_value = -45
|
||||||
host_mock.whiteled_mode_list.return_value = []
|
host_mock.whiteled_mode_list.return_value = []
|
||||||
host_mock.post_recording_time_list.return_value = []
|
host_mock.post_recording_time_list.return_value = []
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
'ONVIF enabled': True,
|
'ONVIF enabled': True,
|
||||||
'RTMP enabled': True,
|
'RTMP enabled': True,
|
||||||
'RTSP enabled': True,
|
'RTSP enabled': True,
|
||||||
'WiFi connection': False,
|
'WiFi connection': True,
|
||||||
'WiFi signal': -45,
|
'WiFi signal': -45,
|
||||||
'abilities': dict({
|
'abilities': dict({
|
||||||
'abilityChn': list([
|
'abilityChn': list([
|
||||||
|
@@ -21,6 +21,8 @@ async def test_entry_diagnostics(
|
|||||||
snapshot: SnapshotAssertion,
|
snapshot: SnapshotAssertion,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test Reolink diagnostics."""
|
"""Test Reolink diagnostics."""
|
||||||
|
reolink_host.wifi_connection.return_value = True
|
||||||
|
|
||||||
assert await hass.config_entries.async_setup(config_entry.entry_id)
|
assert await hass.config_entries.async_setup(config_entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
||||||
|
@@ -21,7 +21,7 @@ async def test_sensors(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Test sensor entities."""
|
"""Test sensor entities."""
|
||||||
reolink_host.ptz_pan_position.return_value = 1200
|
reolink_host.ptz_pan_position.return_value = 1200
|
||||||
reolink_host.wifi_connection = True
|
reolink_host.wifi_connection.return_value = True
|
||||||
reolink_host.wifi_signal.return_value = -55
|
reolink_host.wifi_signal.return_value = -55
|
||||||
reolink_host.hdd_list = [0]
|
reolink_host.hdd_list = [0]
|
||||||
reolink_host.hdd_storage.return_value = 95
|
reolink_host.hdd_storage.return_value = 95
|
||||||
|
Reference in New Issue
Block a user