Remove unused code in ESPHome entry_data (#114263)

This commit is contained in:
J. Nick Koston 2024-03-26 10:32:16 -10:00 committed by GitHub
parent 6599b9a36d
commit a0d43aeba2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
from __future__ import annotations
import asyncio
from collections.abc import Callable, Coroutine, Iterable
from collections.abc import Callable, Iterable
from dataclasses import dataclass, field
from functools import partial
import logging
@ -173,15 +173,6 @@ class RuntimeEntryData:
"""Unsubscribe to when static info is registered."""
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
def async_register_key_static_info_updated_callback(
self,