Skip to content

Commit

Permalink
added device info debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed Jul 18, 2024
1 parent 99cc7db commit 3ecf0aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/ftms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def _on_disconnect(ftms_: pyftms.FitnessMachine) -> None:

await ftms_connect(ftms)

_LOGGER.debug(f"Device Information: {ftms.device_info}")
_LOGGER.debug(f"Machine type: {ftms.machine_type!r}")
_LOGGER.debug(f"Available sensors: {ftms.available_properties}")
_LOGGER.debug(f"Supported settings: {ftms.supported_settings}")
_LOGGER.debug(f"Supported ranges: {ftms.supported_ranges}")

assert ftms.machine_type.name

unique_id = "".join(
Expand Down
1 change: 1 addition & 0 deletions custom_components/ftms/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ async def async_step_ble_request(
_LOGGER.debug(f"Machine type: {self._ftms.machine_type!r}")
_LOGGER.debug(f"Available sensors: {self._ftms.available_properties}")
_LOGGER.debug(f"Supported settings: {self._ftms.supported_settings}")
_LOGGER.debug(f"Supported ranges: {self._ftms.supported_ranges}")
_LOGGER.debug(f"Suggested sensors: {self._suggested_sensors}")

return self.async_show_progress_done(next_step_id="information")
Expand Down

0 comments on commit 3ecf0aa

Please sign in to comment.