diff --git a/homeassistant/components/esphome/entry_data.py b/homeassistant/components/esphome/entry_data.py index 970dc296c95..ae0dca49411 100644 --- a/homeassistant/components/esphome/entry_data.py +++ b/homeassistant/components/esphome/entry_data.py @@ -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,