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

[BUG] #390

Open
c4coer opened this issue Jan 26, 2025 · 2 comments
Open

[BUG] #390

c4coer opened this issue Jan 26, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@c4coer
Copy link

c4coer commented Jan 26, 2025

Describe the bug
after update HA to:
Core
2025.1.4
Interface utilisateur
20250109.2

I got a message that this integration would no longer provide an entity, and I connected but two devices which provided entities just before, but I no longer have anything.

I redid the connections from scratch, the connection is established, but no longer finds an entity.

Please complete the following information:

  • HASS version: [e.g. 2025.1.4]
  • Component version [e.g. 2.4.0]
  • Router model [e.g. AX3600Mi]
  • Router firmware version [3.0.22 french]
@c4coer c4coer added the bug Something isn't working label Jan 26, 2025
@c4coer
Copy link
Author

c4coer commented Jan 26, 2025

this is file error:
Enregistreur: homeassistant.config_entries
Source: config_entries.py:640
S'est produit pour la première fois: 13:13:38 (2 occurrences)
Dernier enregistrement: 13:22:39

Error setting up entry 192.168.0.80 for miwifi
Error setting up entry 192.168.0.1 for miwifi
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/miwifi/init.py", line 103, in async_setup_entry
await async_start()
File "/config/custom_components/miwifi/init.py", line 100, in async_start
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2278, in async_forward_entry_setups
await integration.async_get_platforms(platforms)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
import_future.result()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
import_future.result()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1185, in async_get_platforms
import_future.result()
~~~~~~~~~~~~~~~~~~~~^^
[Previous line repeated 4 more times]
File "/usr/src/homeassistant/homeassistant/loader.py", line 1173, in async_get_platforms
platforms.update(self._load_platforms(platform_names))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1098, in _load_platforms
platform_name: self._load_platform(platform_name)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
cache[full_name] = self._import_platform(platform_name)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/miwifi/sensor.py", line 17, in
from homeassistant.const import DATA_MEGABYTES, PERCENTAGE, TEMP_CELSIUS
ImportError: cannot import name 'DATA_MEGABYTES' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)

@Kolcha2009
Copy link

You have to chnage some file, because the latest HAOS update broke the intgration and sadly there is no progress since a very long time. Just look here #359 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants