Clean up superfluous integration setup - part 2 (#48478)

This commit is contained in:
Franck Nijhof 2021-03-30 01:23:07 +02:00 committed by GitHub
parent 8393a215e9
commit 6ec3234ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 5 additions and 95 deletions

View file

@ -26,11 +26,10 @@ from tests.common import MockConfigEntry
MOCK_MAC_ADDR = "AA:BB:CC:DD:EE:FF"
@patch("homeassistant.components.gogogate2.async_setup", return_value=True)
@patch("homeassistant.components.gogogate2.async_setup_entry", return_value=True)
@patch("homeassistant.components.gogogate2.common.GogoGate2Api")
async def test_auth_fail(
gogogate2api_mock, async_setup_entry_mock, async_setup_mock, hass: HomeAssistant
gogogate2api_mock, async_setup_entry_mock, hass: HomeAssistant
) -> None:
"""Test authorization failures."""
api: GogoGate2Api = MagicMock(spec=GogoGate2Api)