mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix lingering timer in withings (#93085)
This commit is contained in:
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.
|
# 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)
|
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||||
|
|
||||||
|
@ -165,7 +165,11 @@ async def test_set_config_unique_id(
|
|||||||
|
|
||||||
config_entry = MockConfigEntry(
|
config_entry = MockConfigEntry(
|
||||||
domain=DOMAIN,
|
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:
|
with patch("homeassistant.components.withings.async_get_data_manager") as mock:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user