Fix unique_id of nuki config entry (#62840)
* fix(nuki): fixed naming of nuki integration * parse_id function * migration path * fixes from ci runs * don't update title if it was changed * move to dedicated helper * use dict of params * Update homeassistant/components/nuki/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
53fdcf1b6a
commit
1af3177466
5 changed files with 27 additions and 9 deletions
6
homeassistant/components/nuki/helpers.py
Normal file
6
homeassistant/components/nuki/helpers.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
"""nuki integration helpers."""
|
||||
|
||||
|
||||
def parse_id(hardware_id):
|
||||
"""Parse Nuki ID."""
|
||||
return hex(hardware_id).split("x")[-1].upper()
|
Loading…
Add table
Add a link
Reference in a new issue