ha-mediabrowser
ha-mediabrowser copied to clipboard
Integration won't load in home assistant 2025.7
System Health details
System Information
| version | core-2025.7.0 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| container_arch | amd64 |
| user | root |
| virtualenv | false |
| python_version | 3.13.3 |
| os_name | Linux |
| os_version | 6.12.23-haos |
| arch | x86_64 |
| timezone | America/New_York |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| HACS Data | ok |
| GitHub API Calls Remaining | 5000 |
| Installed Version | 2.0.5 |
| Stage | running |
| Available Repositories | 2081 |
| Downloaded Repositories | 54 |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 15.2 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2025.06.2 |
| agent_version | 1.7.2 |
| docker_version | 28.0.4 |
| disk_total | 234.0 GB |
| disk_used | 21.5 GB |
| healthy | true |
| supported | true |
| host_connectivity | true |
| supervisor_connectivity | true |
| ntp_synchronized | true |
| virtualization | |
| board | generic-x86-64 |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | Mosquitto broker (6.5.1), Z-Wave JS UI (4.5.0), Studio Code Server (5.19.3), Terminal & SSH (9.18.0), SQLite Web (4.4.0), File editor (5.8.0), Zigbee2MQTT (2.5.0-1), go2rtc (1.9.9), Home Assistant Google Drive Backup (0.112.1), WeatherFlow to MQTT (3.2.2), ESPHome Device Builder (2025.6.2) |
Dashboards
| dashboards | 7 |
|---|---|
| resources | 37 |
| views | 48 |
| mode | storage |
Network Configuration
| adapters | lo (disabled), enp1s0 (enabled, default, auto), docker0 (disabled), hassio (disabled), veth9bb17e0 (disabled), veth7cde6e7 (disabled), veth01f9900 (disabled), vethbb0ccf7 (disabled), veth949e77b (disabled), vethaa9b699 (disabled), veth15be39e (disabled), veth85ba0e2 (disabled), vetha557fc6 (disabled), veth9bc2b4b (disabled), veth9d1fadc (disabled), veth73b3353 (disabled), veth81fcab1 (disabled) |
|---|---|
| ipv4_addresses | lo (127.0.0.1/8), enp1s0 (192.168.86.51/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), veth9bb17e0 (), veth7cde6e7 (), veth01f9900 (), vethbb0ccf7 (), veth949e77b (), vethaa9b699 (), veth15be39e (), veth85ba0e2 (), vetha557fc6 (), veth9bc2b4b (), veth9d1fadc (), veth73b3353 (), veth81fcab1 () |
| ipv6_addresses | lo (::1/128), enp1s0 (fda7:726:a81b:97b2:e93d:e483:a3f2:2515/64, fe80::fdbd:f3f9:638f:9bb6/64), docker0 (fe80::18ab:faff:fe95:a7b6/64), hassio (fe80::bc6d:efff:fe46:dc5f/64), veth9bb17e0 (fe80::c447:40ff:fe09:cfc0/64), veth7cde6e7 (fe80::c43:10ff:fe7c:b803/64), veth01f9900 (fe80::386b:52ff:fecd:90c1/64), vethbb0ccf7 (fe80::4cec:c8ff:fe98:9a79/64), veth949e77b (fe80::8095:cfff:fe25:d1f5/64), vethaa9b699 (fe80::38e4:b8ff:fedf:36d5/64), veth15be39e (fe80::40f5:6cff:fef4:f061/64), veth85ba0e2 (fe80::cc2f:c0ff:fe15:72d1/64), vetha557fc6 (fe80::ac51:ebff:fe16:496c/64), veth9bc2b4b (fe80::389b:1aff:fe94:d127/64), veth9d1fadc (fe80::2cb3:62ff:fecb:69aa/64), veth73b3353 (fe80::786b:d5ff:fee6:69c6/64), veth81fcab1 (fe80::40ca:35ff:fe8e:ffab/64) |
| announce_addresses | 192.168.86.51, fda7:726:a81b:97b2:e93d:e483:a3f2:2515, fe80::fdbd:f3f9:638f:9bb6 |
Recorder
| oldest_recorder_run | June 20, 2025 at 6:36 PM |
|---|---|
| current_recorder_run | July 2, 2025 at 3:09 PM |
| estimated_db_size | 3480.71 MiB |
| database_engine | sqlite |
| database_version | 3.48.0 |
Checklist
- [x] I have enabled debug logging for my installation.
- [x] I have filled out the issue template to the best of my ability.
- [x] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
- [x] This issue is not a duplicate issue of currently previous issues..
Describe the issue
Logger: homeassistant.setup Source: setup.py:343 First occurred: 3:09:42 PM (1 occurrence) Last logged: 3:09:42 PM
Setup failed for custom integration 'mediabrowser': Unable to import component: No module named homeassistant.backports.enum'
File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1018, in async_get_component
self._component_future.result()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 998, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1058, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, 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 "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/config/custom_components/mediabrowser/__init__.py", line 17, in <module>
from .helpers import snake_cased_json
File "/config/custom_components/mediabrowser/helpers.py", line 13, in <module>
from .const import (
...<7 lines>...
)
File "/config/custom_components/mediabrowser/const.py", line 5, in <module>
from homeassistant.backports.enum import StrEnum
ModuleNotFoundError: No module named 'homeassistant.backports.enum'```
### Reproduction steps
1. Update to 2025.7
2. Install ha-mediabrowser via HACS
3. Error as above
...
### Debug logs
```text
see above
Diagnostics dump
No response
+1 Same here
+2, Same here. I hope someone is still maintaining this and can fix this problem.
+3 Same here
https://github.com/rumbu13/ha-mediabrowser/pull/14
This will fix it
It certainly did! Thank you so much!
This will fix it
Didn't seem to work for me
Logger: homeassistant.setup Source: setup.py:343 First occurred: 17:16:09 (1 occurrence) Last logged: 17:16:09
Setup failed for custom integration 'mediabrowser': Unable to import component: No module named 'homeassistant.backports.enum'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1018, in async_get_component
self._component_future.result()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 998, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1058, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, 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 "
Fixed by copying const.py config from revin fork here https://github.com/revin34/ha-emby/blob/main/custom_components/mediabrowser/const.py
Does this work via hacs already?
Does this work via hacs already?
Not sure what you are asking here. Are you asking if original repository has been updated?
Yes.. If not, how do I get these changes into my homeassistant? Just copy / paste?
How did you folks do that.
Yes.. If not, how do I get these changes into my homeassistant? Just copy / paste?
How did you folks do that.
I haven't tried via HACS . Not sure its been updated. Go to the link above. Copy the code for the const.py file. Go to your Home Assistant file editor. Find the mediabrowser folder (should be in custom components) . In the mediabrowser folder is a python file called const.py . Overwrite the content of that file with the copied code. Restart HA and media browser should work . Alternative is to remove the original mediabrowser and install the fresh one from the repository above,.
You can also just download the updated const.py file and upload it using file editor, over writing the original.
Thanks. Let's hope the original author is gonna approve the PR 😉