Skip to content

Commit

Permalink
Cleaned up not required variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mreditor97 committed Jun 1, 2023
1 parent 63c78bc commit 2f3e0ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions esphome/components/xl9535/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ async def xl9535_pin_to_code(config):
parent = await cg.get_variable(config[CONF_XL9535])

cg.add(var.set_parent(parent))

number = config[CONF_NUMBER]
cg.add(var.set_pin(number))
cg.add(var.set_pin(config[CONF_NUMBER]))
cg.add(var.set_inverted(config[CONF_INVERTED]))
cg.add(var.set_flags(pins.gpio_flags_expr(config[CONF_MODE])))

Expand Down

0 comments on commit 2f3e0ad

Please sign in to comment.