Remove callback decorators where unneeded (#90478)
* Remove callback decorators where unneeded * revert extra replace
This commit is contained in:
parent
93d1961aae
commit
fc78290e2f
2 changed files with 3 additions and 10 deletions
|
@ -82,8 +82,8 @@ from .const import (
|
|||
from .helpers import (
|
||||
async_enable_statistics,
|
||||
async_get_node_from_device_id,
|
||||
async_update_data_collection_preference,
|
||||
get_device_id,
|
||||
update_data_collection_preference,
|
||||
)
|
||||
|
||||
DATA_UNSUBSCRIBE = "unsubs"
|
||||
|
@ -1860,7 +1860,7 @@ async def websocket_update_data_collection_preference(
|
|||
) -> None:
|
||||
"""Update preference for data collection and enable/disable collection."""
|
||||
opted_in = msg[OPTED_IN]
|
||||
update_data_collection_preference(hass, entry, opted_in)
|
||||
async_update_data_collection_preference(hass, entry, opted_in)
|
||||
|
||||
if opted_in:
|
||||
await async_enable_statistics(driver)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue