Allow removing a ring device (#72665)
This commit is contained in:
parent
3a0111e65d
commit
42bcd0263c
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@ from ring_doorbell import Auth, Ring
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform, __version__
|
from homeassistant.const import Platform, __version__
|
||||||
from homeassistant.core import HomeAssistant, ServiceCall, callback
|
from homeassistant.core import HomeAssistant, ServiceCall, callback
|
||||||
|
from homeassistant.helpers import device_registry as dr
|
||||||
from homeassistant.helpers.event import async_track_time_interval
|
from homeassistant.helpers.event import async_track_time_interval
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.util.async_ import run_callback_threadsafe
|
from homeassistant.util.async_ import run_callback_threadsafe
|
||||||
|
@ -146,6 +147,13 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
async def async_remove_config_entry_device(
|
||||||
|
hass: HomeAssistant, config_entry: ConfigEntry, device_entry: dr.DeviceEntry
|
||||||
|
) -> bool:
|
||||||
|
"""Remove a config entry from a device."""
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
class GlobalDataUpdater:
|
class GlobalDataUpdater:
|
||||||
"""Data storage for single API endpoint."""
|
"""Data storage for single API endpoint."""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue