Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga committed Oct 24, 2019
1 parent 1573f47 commit e111956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/components/zha/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def make_entity_id(domain, device, cluster, use_suffix=True):
machine so that we can test state changes.
"""
ieee = device.ieee
ieeetail = "".join(["%02x" % (o,) for o in ieee[-4:]])
ieeetail = "".join([f"{o:02x}" for o in ieee[:4]])
entity_id = "{}.{}_{}_{}_{}{}".format(
domain,
slugify(device.manufacturer),
Expand Down

0 comments on commit e111956

Please sign in to comment.