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

All bluetooth devices become unavailable #1247

Closed
ghost opened this issue Dec 29, 2023 · 6 comments
Closed

All bluetooth devices become unavailable #1247

ghost opened this issue Dec 29, 2023 · 6 comments
Labels
duplicate This issue or pull request already exists
Milestone

Comments

@ghost
Copy link

ghost commented Dec 29, 2023

After upgrading to Core 2024.1.0b0-2024.1.0b2 all bluetooth devices become unavailable.
All works well on 2023.12.4

Possible reasons (from release notes):

  • Bump bluetooth-data-tools to 0.19.0
  • Update habluetooth to 2.0.0
  • Bump bluetooth-adapters to 0.16.2
  • Bump bluetooth libraries
  • Relocate base Bluetooth scanner code into an external library
  • Move local bluetooth scanner code into habluetooth library
  • Relocate Bluetooth manager to habluetooth library
@TrongLeNT
Copy link

Same as me.

Anyone to help please!

@LeandroIssa
Copy link

LeandroIssa commented Jan 3, 2024

Same as me!
Help please!

HA Core 2024.1 is now here and this beta issue is now a reality in prod.

@eruisi
Copy link

eruisi commented Jan 3, 2024

I ran into same issue after I upgrade HA core to 2024.1.0
My Xiaomi gateway firmware version is 1.5.6_00001

@alex-msk
Copy link

alex-msk commented Jan 4, 2024

This message appeared in the logs after the update for 2024.1

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/xiaomi_gateway3/sensor.py", line 42, in <module>
    "power": POWER_WATT,
             ^^^^^^^^^^
NameError: name 'POWER_WATT' is not defined 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/xiaomi_gateway3/climate.py", line 14, in <module>
    HVAC_MODE_OFF: CURRENT_HVAC_OFF,
    ^^^^^^^^^^^^^
NameError: name 'HVAC_MODE_OFF' is not defined

@dengi76
Copy link

dengi76 commented Jan 4, 2024

Same problem!

@randybb
Copy link

randybb commented Jan 4, 2024

duplicate of #1245

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Jan 5, 2024
@AlexxIT AlexxIT closed this as completed Jan 5, 2024
@AlexxIT AlexxIT added this to the v3.3.5 milestone Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants