Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed May 28, 2024
1 parent 3c64cc9 commit 511fbdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyftms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
)
from .client.backends import FtmsEvents
from .client.machines import CrossTrainer, IndoorBike, Rower, Treadmill
from .models import IndoorBikeSimulationParameters, ResultCode
from .models import IndoorBikeSimulationParameters, ResultCode, TrainingStatusCode

__all__ = [
"get_client",
Expand Down Expand Up @@ -59,4 +59,5 @@
"SettingRange",
"ResultCode",
"PropertiesManager",
"TrainingStatusCode",
]
4 changes: 2 additions & 2 deletions pyftms/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import logging
from abc import ABC
from functools import cached_property
from types import MappingProxyType
from typing import Any, ClassVar
from functools import cached_property

from bleak import BleakClient
from bleak.backends.device import BLEDevice
Expand Down Expand Up @@ -230,7 +230,7 @@ async def reset(self) -> ResultCode:
"""Initiates the procedure to reset the controllable settings of a fitness machine."""
return await self._write_command(ControlCode.RESET)

async def start(self) -> ResultCode:
async def start_resume(self) -> ResultCode:
"""Initiate the procedure to start or resume a training session."""
return await self._write_command(ControlCode.START_RESUME)

Expand Down

0 comments on commit 511fbdc

Please sign in to comment.