Skip to content

Commit

Permalink
Fix ZHA entity_id assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga committed Oct 24, 2019
1 parent d44de6d commit 1573f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/zha/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, unique_id, zha_device, channels, skip_entity_id=False, **kwar
self._unique_id = unique_id
if not skip_entity_id:
ieee = zha_device.ieee
ieeetail = "".join(["%02x" % (o,) for o in ieee[-4:]])
ieeetail = "".join([f"{o:02x}" for o in ieee[:4]])
self.entity_id = "{}.{}_{}_{}_{}{}".format(
self._domain,
slugify(zha_device.manufacturer),
Expand Down

0 comments on commit 1573f47

Please sign in to comment.