From 8ecd304176d9f31340a95e73aa7efbfc08b29f77 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 26 Dec 2021 16:55:49 +0100 Subject: [PATCH] Fix lint issues --- components/xiaomi_ylkg07yl/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/xiaomi_ylkg07yl/__init__.py b/components/xiaomi_ylkg07yl/__init__.py index a9f9b14..00aa935 100644 --- a/components/xiaomi_ylkg07yl/__init__.py +++ b/components/xiaomi_ylkg07yl/__init__.py @@ -58,6 +58,7 @@ "OnButtonMinusTrigger", automation.Trigger.template() ) + def validate_short_bind_key(value): value = cv.string_strict(value) parts = [value[i : i + 2] for i in range(0, len(value), 2)] @@ -121,6 +122,7 @@ def validate_short_bind_key(value): .extend(cv.COMPONENT_SCHEMA) ) + async def to_code(config): var = cg.new_Pvariable(config[CONF_ID]) await cg.register_component(var, config)