mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Remove unneeded type for enphase_envoy coordinator in async_unload_entry (#133817)
This commit is contained in:
parent
a2aba77973
commit
c6789d70a4
@ -77,7 +77,7 @@ async def async_reload_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||
|
||||
async def async_unload_entry(hass: HomeAssistant, entry: EnphaseConfigEntry) -> bool:
|
||||
"""Unload a config entry."""
|
||||
coordinator: EnphaseUpdateCoordinator = entry.runtime_data
|
||||
coordinator = entry.runtime_data
|
||||
coordinator.async_cancel_token_refresh()
|
||||
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||
|
||||
|
@ -35,11 +35,7 @@ rules:
|
||||
comment: no events used.
|
||||
entity-unique-id: done
|
||||
has-entity-name: done
|
||||
runtime-data:
|
||||
status: done
|
||||
comment: |
|
||||
async_unload_entry- coordinator: EnphaseUpdateCoordinator = entry.runtime_data
|
||||
You can remove the EnphaseUpdateCoordinator as the type can now be inferred thanks to the typed config entry
|
||||
runtime-data: done
|
||||
test-before-configure: done
|
||||
test-before-setup: done
|
||||
unique-config-entry: done
|
||||
|
Loading…
x
Reference in New Issue
Block a user