mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Remove unused code in ESPHome entry_data (#114263)
This commit is contained in:
parent
6599b9a36d
commit
a0d43aeba2
@ -3,7 +3,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from collections.abc import Callable, Coroutine, Iterable
|
from collections.abc import Callable, Iterable
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import logging
|
import logging
|
||||||
@ -173,15 +173,6 @@ class RuntimeEntryData:
|
|||||||
"""Unsubscribe to when static info is registered."""
|
"""Unsubscribe to when static info is registered."""
|
||||||
callbacks.remove(callback_)
|
callbacks.remove(callback_)
|
||||||
|
|
||||||
@callback
|
|
||||||
def _async_unsubscribe_static_key_remove(
|
|
||||||
self,
|
|
||||||
callbacks: list[Callable[[], Coroutine[Any, Any, None]]],
|
|
||||||
callback_: Callable[[], Coroutine[Any, Any, None]],
|
|
||||||
) -> None:
|
|
||||||
"""Unsubscribe to when static info is removed."""
|
|
||||||
callbacks.remove(callback_)
|
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_register_key_static_info_updated_callback(
|
def async_register_key_static_info_updated_callback(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user