Switch to using entry.async_on_remove (#52952)
This commit is contained in:
parent
a021d7d628
commit
9cbf88d944
12 changed files with 27 additions and 34 deletions
|
@ -48,13 +48,14 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
|||
from .const import (
|
||||
CONF_DATA_COLLECTION_OPTED_IN,
|
||||
DATA_CLIENT,
|
||||
DATA_UNSUBSCRIBE,
|
||||
DOMAIN,
|
||||
EVENT_DEVICE_ADDED_TO_REGISTRY,
|
||||
)
|
||||
from .helpers import async_enable_statistics, update_data_collection_preference
|
||||
from .services import BITMASK_SCHEMA
|
||||
|
||||
DATA_UNSUBSCRIBE = "unsubs"
|
||||
|
||||
# general API constants
|
||||
ID = "id"
|
||||
ENTRY_ID = "entry_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue