Address Blink late review (#102106)

* Address late review topics

* Missing await, optimize config_flow call

* Address proper mock for blink

* Address typing
This commit is contained in:
mkmer 2023-10-16 11:41:56 -04:00 committed by GitHub
parent e151358aa1
commit 9444e1e2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 17 deletions

View file

@ -271,7 +271,7 @@ async def test_options_flow(hass: HomeAssistant) -> None:
mock_auth = AsyncMock(
startup=Mock(return_value=True), check_key_required=Mock(return_value=False)
)
mock_blink = AsyncMock()
mock_blink = AsyncMock(cameras=Mock(), sync=Mock())
with patch("homeassistant.components.blink.Auth", return_value=mock_auth), patch(
"homeassistant.components.blink.Blink", return_value=mock_blink