Skip to content

Commit

Permalink
Resolve asyncio never awaited warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paimonsoror committed Jan 29, 2025
1 parent fcaa7d0 commit f18e059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/govee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):
return unload_ok


async def _unload_component_entry(
def _unload_component_entry(
hass: HomeAssistant, entry: ConfigEntry, component: str
) -> bool:
"""Unload an entry for a specific component."""
success = False
try:
success = hass.config_entries.async_forward_entry_unload(entry, component)
success = await hass.config_entries.async_forward_entry_unload(entry, component)
except ValueError:
# probably ValueError: Config entry was never loaded!
return success
Expand Down

0 comments on commit f18e059

Please sign in to comment.