From 03cabbb84f7facc859a9a835c46cdc99001bd65d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 11:39:35 -0500 Subject: [PATCH] binary sensor --- components/ratgdo/binary_sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ratgdo/binary_sensor/__init__.py b/components/ratgdo/binary_sensor/__init__.py index b786d32..154f61e 100644 --- a/components/ratgdo/binary_sensor/__init__.py +++ b/components/ratgdo/binary_sensor/__init__.py @@ -33,5 +33,5 @@ async def to_code(config): var = cg.new_Pvariable(config[CONF_ID]) await binary_sensor.register_binary_sensor(var, config) await cg.register_component(var, config) - cg.add(var.set_type(var, config[CONF_TYPE])) + cg.add(var.set_type(config[CONF_TYPE])) await register_ratgdo_child(var, config)