From b7f6eb0a7d276b1ee60f1d986b191ded8dadd5af Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 10 Sep 2026 20:18:25 -0500 Subject: [PATCH] [remote_base] Add the return type on register_binary_sensor --- esphome/components/remote_base/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/remote_base/__init__.py b/esphome/components/remote_base/__init__.py index 76c91cf321..fba9e834ca 100644 --- a/esphome/components/remote_base/__init__.py +++ b/esphome/components/remote_base/__init__.py @@ -151,7 +151,9 @@ FILTER_SOURCE_FILES = filter_source_files_from_defines( ) -def register_binary_sensor(name: str, type: MockObj, schema: cv.Schema | dict): +def register_binary_sensor( + name: str, type: MockObj, schema: cv.Schema | dict +) -> Callable[[Callable[[MockObj, ConfigType], Any]], Callable]: registerer = BINARY_SENSOR_REGISTRY.register(name, type, schema) def decorator(func: Callable[[MockObj, ConfigType], Any]) -> Callable: