Skip to content

Commit

Permalink
log unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed Oct 24, 2024
1 parent afe9122 commit 7e93426
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/ftms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def _on_disconnect(ftms_: pyftms.FitnessMachine) -> None:
x for x in ftms.device_info.get("serial_number", address) if x.isalnum()
).lower()

_LOGGER.debug(f"Registered new FTMS device. UniqueID is '{unique_id}'.")

device_info = dr.DeviceInfo(
connections={(dr.CONNECTION_BLUETOOTH, ftms.address)},
identifiers={(DOMAIN, unique_id)},
Expand Down

0 comments on commit 7e93426

Please sign in to comment.