Fix lingering timer in withings (#93085)

pull/93125/head
epenet 2023-05-15 21:20:20 +02:00 committed by GitHub
parent cf957f1880
commit b38a7aabe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -151,7 +151,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
)
# Start subscription check in the background, outside this component's setup.
async_call_later(hass, 1, async_call_later_callback)
entry.async_on_unload(async_call_later(hass, 1, async_call_later_callback))
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

View File

@ -165,7 +165,11 @@ async def test_set_config_unique_id(
config_entry = MockConfigEntry(
domain=DOMAIN,
data={"token": {"userid": "my_user_id"}, "profile": person0.profile},
data={
"token": {"userid": "my_user_id"},
"auth_implementation": "withings",
"profile": person0.profile,
},
)
with patch("homeassistant.components.withings.async_get_data_manager") as mock: