mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Add Reolink wifi signal sensor for IPC cams (#149200)
This commit is contained in:
@@ -22,7 +22,7 @@ async def test_sensors(
|
||||
"""Test sensor entities."""
|
||||
reolink_connect.ptz_pan_position.return_value = 1200
|
||||
reolink_connect.wifi_connection = True
|
||||
reolink_connect.wifi_signal.return_value = 3
|
||||
reolink_connect.wifi_signal.return_value = -55
|
||||
reolink_connect.hdd_list = [0]
|
||||
reolink_connect.hdd_storage.return_value = 95
|
||||
|
||||
@@ -35,7 +35,7 @@ async def test_sensors(
|
||||
assert hass.states.get(entity_id).state == "1200"
|
||||
|
||||
entity_id = f"{Platform.SENSOR}.{TEST_NVR_NAME}_wi_fi_signal"
|
||||
assert hass.states.get(entity_id).state == "3"
|
||||
assert hass.states.get(entity_id).state == "-55"
|
||||
|
||||
entity_id = f"{Platform.SENSOR}.{TEST_NVR_NAME}_sd_0_storage"
|
||||
assert hass.states.get(entity_id).state == "95"
|
||||
|
||||
Reference in New Issue
Block a user