Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed Sep 14, 2024
1 parent 3817eed commit 2bf0723
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pyftms/client/properties/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class SettingRange(NamedTuple):


async def read_features(cli: BleakClient) -> tuple[MachineFeatures, MachineSettings]:
_LOGGER.debug("Reading features and settings.")
_LOGGER.debug("Reading features and settings...")

try:
data = await cli.read_gatt_char(FITNESS_MACHINE_FEATURE_UUID)
Expand Down Expand Up @@ -179,7 +179,7 @@ async def read_supported_ranges(
) -> MappingProxyType[str, SettingRange]:
result: Mapping[str, SettingRange] = {}

_LOGGER.debug("Reading settings value ranges.")
_LOGGER.debug("Reading settings value ranges...")

if MachineSettings.SPEED in settings:
result[TARGET_SPEED] = await _range(cli, SPEED_RANGE_UUID, "u2.01")
Expand All @@ -198,8 +198,6 @@ async def read_supported_ranges(
if MachineSettings.HEART_RATE in settings:
result[TARGET_HEART_RATE] = await _range(cli, HEART_RATE_RANGE_UUID, "u1")

result = MappingProxyType(result)
_LOGGER.debug(f"Settings ranges: {result}")

_LOGGER.debug("Settings ranges: %s", result)

return result
return MappingProxyType(result)

0 comments on commit 2bf0723

Please sign in to comment.