Fixing config_entries.async_forward_entry_unload calls (step 1) (#27857)
This commit is contained in:
1 parent
c42ca94a86
commit
5ce437dc30
5 files changed
+5
-19
No files matched your search
@@ -172,12 +172,9 @@ async def async_unload_entry(hass, config_entry):
|
||||
)
|
||||
remove_listener()
|
||||
|
||||
for component in ("sensor",):
|
||||
await hass.config_entries.async_forward_entry_unload(config_entry, component)
|
||||
|
||||
hass.data[DOMAIN][DATA_LUFTDATEN_CLIENT].pop(config_entry.entry_id)
|
||||
|
||||
return True
|
||||
return await hass.config_entries.async_forward_entry_unload(config_entry, "sensor")
|
||||
|
||||
|
||||
class LuftDatenData:
|
||||
|
||||
Reference in new issue
Block a user