From a0d43aeba24b6ae7e65dd14179b439f339c335bc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 26 Mar 2024 10:32:16 -1000 Subject: [PATCH] Remove unused code in ESPHome entry_data (#114263) --- homeassistant/components/esphome/entry_data.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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,