Skip to content

Commit

Permalink
use parent nme or empty string for replacement variables
Browse files Browse the repository at this point in the history
  • Loading branch information
FutureTense committed Jun 3, 2021
1 parent abafe0e commit 4dbe268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/keymaster/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def generate_package_files(hass: HomeAssistant, name: str) -> None:
"SENSORALARMTYPE": sensoralarmtype,
"SENSORALARMLEVEL": sensoralarmlevel,
"HIDE_PINS": hide_pins,
"PARENTLOCK": primary_lock.parent,
"PARENTLOCK": "" if primary_lock.parent is None else primary_lock.parent
}

# Replace variables in common file
Expand Down

0 comments on commit 4dbe268

Please sign in to comment.