Skip to content

Commit

Permalink
Merge pull request #307 from jschlyter/remove_device
Browse files Browse the repository at this point in the history
Add support for device removal
  • Loading branch information
jschlyter authored Feb 5, 2025
2 parents 0e18136 + 69eae88 commit b8a4934
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/polestar_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import TYPE_CHECKING

from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
from homeassistant.helpers.device_registry import DeviceEntry
from homeassistant.helpers.httpx_client import create_async_httpx_client
from homeassistant.loader import async_get_loaded_integration
from pypolestar import PolestarApi
Expand Down Expand Up @@ -83,3 +84,10 @@ async def async_unload_entry(hass: HomeAssistant, entry: PolestarConfigEntry) ->

_LOGGER.debug("async_unload_entry: %s", entry)
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)


async def async_remove_config_entry_device(
hass: HomeAssistant, config_entry: PolestarConfigEntry, device_entry: DeviceEntry
) -> bool:
"""Remove a config entry from a device."""
return True

0 comments on commit b8a4934

Please sign in to comment.