mirror of
https://github.com/home-assistant/core.git
synced 2025-05-19 05:19:14 +00:00

* 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>
7 lines
137 B
Python
7 lines
137 B
Python
"""nuki integration helpers."""
|
|
|
|
|
|
def parse_id(hardware_id):
|
|
"""Parse Nuki ID."""
|
|
return hex(hardware_id).split("x")[-1].upper()
|