Fix lingering timer in withings (#93085)
parent
cf957f1880
commit
b38a7aabe9
|
@ -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)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue