Skip to content

Commit

Permalink
fixed error messages when reloading gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Mar 2, 2024
1 parent 7d751ea commit 611f1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/eltako/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _get_identifier(cls, gateway: EnOceanGateway, dev_id: AddressExpression, des
else:
description_key = '_'+description_key

return f"{DOMAIN}_gw{gateway.dev_id}_{config_helpers.format_address(dev_id)}{description_key}".replace('-', '_').lower()
return f"{DOMAIN}_gw{gateway.dev_id}_{config_helpers.format_address(dev_id)}{description_key}".replace(' ', "_").replace('-', '_').lower()

def _get_description_key(self, description_key:str=None):
if description_key is not None:
Expand Down

0 comments on commit 611f1dd

Please sign in to comment.