Skip to content

AttributeError: 'CrossTrainer' object has no attribute '_m_features' #51

Description

@pafernanr

Hello,

I'm using this library on a HomeAssistant Custom Component. It correctly detects my elliptical bike (BHTFT-0596) but after a while it times out showing next exception in the logs.

2025-10-12 16:18:44.521 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 535, in call_configure
    await self._async_configure(flow.flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 393, in _async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        flow, cur_step["step_id"], user_input
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 497, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/ftms/config_flow.py", line 244, in async_step_ble_request
    else self._ftms.supported_properties
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/functools.py", line 1026, in __get__
    val = self.func(instance)
  File "/usr/local/lib/python3.13/site-packages/pyftms/client/client.py", line 201, in supported_properties
    x = self._get_supported_properties(self._m_features)
                                       ^^^^^^^^^^^^^^^^
AttributeError: 'CrossTrainer' object has no attribute '_m_features'

Please let me know if I can provide more details or how to increase debug level if needed.

Thanks for create this library, it is very useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions