Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device not being discovered #22

Open
Gsy-mich opened this issue Feb 24, 2025 · 0 comments
Open

Device not being discovered #22

Gsy-mich opened this issue Feb 24, 2025 · 0 comments

Comments

@Gsy-mich
Copy link

Gsy-mich commented Feb 24, 2025

Had a bit of a battle getting the integration installed and running, kept running into 'An unknown error occurred' message after clicking 'submit' when configuring the integration. I've now got the integration loaded, but I am now getting a 'Failed to setup: Check the logs' error. The error log is

Logger: homeassistant.config_entries
Source: config_entries.py:637
First occurred: 15:55:35 (1 occurrences)
Last logged: 15:55:35

Error setting up entry T-Smart Thermostat for t_smart
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/t_smart/__init__.py", line 28, in async_setup_entry
    await tsmart_discovery.async_discover_devices()
  File "/config/custom_components/t_smart/discovery.py", line 19, in async_discover_devices
    devices = await TSmart.async_discover()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/tsmart/tsmart.py", line 41, in async_discover
    sock.bind(("", 1337))
    ~~~~~~~~~^^^^^^^^^^^^
OSError: [Errno 98] Address in use

Note: I have had this integration installed and working fine previously, it randomly stopped working and I had to uninstall and reinstall recently. The thermostat is operational and responding as expected in the TSmart app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant