Skip to content

Commit

Permalink
Fix cover config with no ID (#317)
Browse files Browse the repository at this point in the history
* Fix cover config with no ID
  • Loading branch information
tomer-w authored Nov 10, 2024
1 parent 76f8b68 commit 769706d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/rpi_gpio/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def async_setup_platform(
cover.get(CONF_STATE_PIN),
state_pull_mode,
invert_state,
cover.get(CONF_UNIQUE_ID) or f"{DOMAIN}_{cover.get(CONF_RELAY_PORT) or cover.get("relay_pin")}_{cover[CONF_NAME].lower().replace(' ', '_')}",
cover.get(CONF_UNIQUE_ID) or f"{DOMAIN}_{cover.get(CONF_RELAY_PIN)}_{cover[CONF_NAME].lower().replace(' ', '_')}",
)
)

Expand Down

0 comments on commit 769706d

Please sign in to comment.