Fixing config_entries.async_forward_entry_unload calls (step 1) (#27857)

This commit is contained in:
Quentame authored and Pascal Vizeli committed 2019-10-20 12:15:46 +02:00
1 parent c42ca94a86
commit 5ce437dc30
5 files changed
+5 -19

No files matched your search

+1 -4
View File
@@ -55,7 +55,4 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
async def async_unload_entry(hass: HomeAssistantType, entry: ConfigEntry):
"""Unload Linky sensors."""
hass.async_create_task(
hass.config_entries.async_forward_entry_unload(entry, "sensor")
)
return True
return await hass.config_entries.async_forward_entry_unload(entry, "sensor")