Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Dec 26, 2021
1 parent f445962 commit 8ecd304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/xiaomi_ylkg07yl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8ecd304

Please sign in to comment.