mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
[remote_base] Add the return type on register_binary_sensor
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user