[remote_base] Add the return type on register_binary_sensor

This commit is contained in:
J. Nick Koston
2026-09-10 20:18:25 -05:00
parent d29d880045
commit b7f6eb0a7d
+3 -1
View File
@@ -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: