Reolink add binary sensors (#85654)
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
7f4a727e10
commit
7e51aeb916
11 changed files with 348 additions and 26 deletions
|
@ -7,6 +7,7 @@ from reolink_aio.exceptions import ApiError, CredentialsInvalidError, ReolinkErr
|
|||
|
||||
from homeassistant import config_entries, data_entry_flow
|
||||
from homeassistant.components.reolink import const
|
||||
from homeassistant.components.reolink.config_flow import DEFAULT_PROTOCOL
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_USERNAME
|
||||
from homeassistant.helpers.device_registry import format_mac
|
||||
|
||||
|
@ -85,7 +86,7 @@ async def test_config_flow_manual_success(hass):
|
|||
const.CONF_USE_HTTPS: TEST_USE_HTTPS,
|
||||
}
|
||||
assert result["options"] == {
|
||||
const.CONF_PROTOCOL: const.DEFAULT_PROTOCOL,
|
||||
const.CONF_PROTOCOL: DEFAULT_PROTOCOL,
|
||||
}
|
||||
|
||||
|
||||
|
@ -195,7 +196,7 @@ async def test_config_flow_errors(hass):
|
|||
const.CONF_USE_HTTPS: TEST_USE_HTTPS,
|
||||
}
|
||||
assert result["options"] == {
|
||||
const.CONF_PROTOCOL: const.DEFAULT_PROTOCOL,
|
||||
const.CONF_PROTOCOL: DEFAULT_PROTOCOL,
|
||||
}
|
||||
|
||||
|
||||
|
@ -250,7 +251,7 @@ async def test_change_connection_settings(hass):
|
|||
const.CONF_USE_HTTPS: TEST_USE_HTTPS,
|
||||
},
|
||||
options={
|
||||
const.CONF_PROTOCOL: const.DEFAULT_PROTOCOL,
|
||||
const.CONF_PROTOCOL: DEFAULT_PROTOCOL,
|
||||
},
|
||||
title=TEST_NVR_NAME,
|
||||
)
|
||||
|
@ -293,7 +294,7 @@ async def test_reauth(hass):
|
|||
const.CONF_USE_HTTPS: TEST_USE_HTTPS,
|
||||
},
|
||||
options={
|
||||
const.CONF_PROTOCOL: const.DEFAULT_PROTOCOL,
|
||||
const.CONF_PROTOCOL: DEFAULT_PROTOCOL,
|
||||
},
|
||||
title=TEST_NVR_NAME,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue