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

HA 2024.1 Issue #1250

Closed
git4const opened this issue Jan 4, 2024 · 16 comments
Closed

HA 2024.1 Issue #1250

git4const opened this issue Jan 4, 2024 · 16 comments
Labels
duplicate This issue or pull request already exists
Milestone

Comments

@git4const
Copy link

After update to HA 2024.1 XiaomiGateway3 component is totally broken.

Unable to prepare setup for platform 'xiaomi_gateway3.sensor': Platform not found (Exception importing custom_components.xiaomi_gateway3.sensor).
Unable to prepare setup for platform 'xiaomi_gateway3.climate': Platform not found (Exception importing custom_components.xiaomi_gateway3.climate).

Unexpected exception importing platform custom_components.xiaomi_gateway3.climate

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
Unexpected exception importing platform custom_components.xiaomi_gateway3.sensor

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

Also such warnings:

SUPPORT_ALARM_ARM_AWAY was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_AWAY instead, please create a bug report at https://github.com/AlexxIT/XiaomiGateway3/issues
SUPPORT_ALARM_ARM_HOME was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_HOME instead, please create a bug report at https://github.com/AlexxIT/XiaomiGateway3/issues
SUPPORT_ALARM_ARM_NIGHT was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_NIGHT instead, please create a bug report at https://github.com/AlexxIT/XiaomiGateway3/issues
SUPPORT_ALARM_TRIGGER was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.TRIGGER instead, please create a bug report at https://github.com/AlexxIT/XiaomiGateway3/issues
@git4const git4const changed the title 2024.1 Issue HA 2024.1 Issue Jan 4, 2024
@GSVil
Copy link

GSVil commented Jan 4, 2024

I can confirm the issue, rolled back my HA installation..

@randybb
Copy link

randybb commented Jan 4, 2024

duplicate of #1245

@Sheredeka
Copy link

I can confirm this issue, my log added
home-assistant_xiaomi_gateway3_2024-01-04T13-50-11.420Z.log

@petrotti77
Copy link

Verrà risolto questo problema?

@Ivanant1982
Copy link

такая же проблема. Откатил систему на предыдущую версию, новую проигнорил, и шлюз подцепился без проблем.

@sakon63
Copy link

sakon63 commented Jan 4, 2024

Та же проблема после обновления на HA 2024.1
Нужно добавить - после отката core и обновления Xiaomi Miot Auto опять все пропало.

@gcshum
Copy link

gcshum commented Jan 4, 2024

I confirmed that HA Core 2024.1.0 broke my Xiaomi Gateway 3 integration. Rolling back to Core 2023.12.4 works again. Please fix so that we can keep HA up to date.

@Tixio79
Copy link

Tixio79 commented Jan 4, 2024

Anche a me, dopo aggiornamento, di è bloccato tutto.
Screenshot_2024-01-04-09-46-10-694_io homeassistant companion android

@Mategm
Copy link

Mategm commented Jan 4, 2024

I can confirm the issue, My HA does drop errors on Xiaomi Gateway 3.

@Sheredeka
Copy link

Go to #1245 (comment)

And run patch

@jeremysherriff
Copy link

The patch has been merged and is available as part of the master branch.

To install it formally, use the "Redownload" option in the 3-dot menu in the HACS web interface:
image

..and choose master (not v3.3.4).
Once downloaded, you will need to restart HA for the changes to take effect.

@avihome63
Copy link

The patch has been merged and is available as part of the master branch.

To install it formally, use the "Redownload" option in the 3-dot menu in the HACS web interface: image

..and choose master (not v3.3.4). Once downloaded, you will need to restart HA for the changes to take effect.

Thank you. Redownload helps

@Smiley-k
Copy link

Smiley-k commented Jan 5, 2024

My cum )) suggests that you just need to re-login (update authorization) and everything will work ...

@AlexxIT AlexxIT added the duplicate This issue or pull request already exists label Jan 5, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 5, 2024

#1245

@AlexxIT AlexxIT closed this as completed Jan 5, 2024
@AlexxIT AlexxIT added this to the v3.3.5 milestone Jan 5, 2024
@Mategm
Copy link

Mategm commented Jan 5, 2024

Go to #1245 (comment)

And run patch

Thank You! Its realy works!

@git4const
Copy link
Author

Confirm. Working. Thank you.

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