Google Sheets: small cleanup (#83685)
* Remove duplicate object key in strings.json
* Remove async_entry_has_scopes check
This is not needed. This was copied from google calendar integration
where it was needed to reauth when the scope changed.
* Remove unused constant in application_credentials
* Move constant to the file used
* fix warning use-implicit-booleaness-not-len
* Remove not accessed parameters
* Revert "Remove async_entry_has_scopes check"
This reverts commit 63e24f84cc
.
This commit is contained in:
parent
e53758c1bb
commit
2cfdae0c45
5 changed files with 3 additions and 16 deletions
|
@ -92,7 +92,7 @@ async def test_setup_success(
|
|||
|
||||
assert not hass.data.get(DOMAIN)
|
||||
assert entries[0].state is ConfigEntryState.NOT_LOADED
|
||||
assert not len(hass.services.async_services().get(DOMAIN, {}))
|
||||
assert not hass.services.async_services().get(DOMAIN, {})
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
@ -125,7 +125,6 @@ async def test_missing_required_scopes_requires_reauth(
|
|||
async def test_expired_token_refresh_success(
|
||||
hass: HomeAssistant,
|
||||
setup_integration: ComponentSetup,
|
||||
scopes: list[str],
|
||||
aioclient_mock: AiohttpClientMocker,
|
||||
) -> None:
|
||||
"""Test expired token is refreshed."""
|
||||
|
@ -168,7 +167,6 @@ async def test_expired_token_refresh_success(
|
|||
async def test_expired_token_refresh_failure(
|
||||
hass: HomeAssistant,
|
||||
setup_integration: ComponentSetup,
|
||||
scopes: list[str],
|
||||
aioclient_mock: AiohttpClientMocker,
|
||||
status: http.HTTPStatus,
|
||||
expected_state: ConfigEntryState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue