### The problem
the edl21 integration breaks with the update to 2024.4.4 with f…ollowing error message
`Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1232, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1264, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/edl21/sensor.py", line 9, in <module>
from sml import SmlGetListResponse
File "/usr/local/lib/python3.12/site-packages/sml/__init__.py", line 32, in <module>
import bitstring
File "/usr/local/lib/python3.12/site-packages/bitstring/__init__.py", line 197, in <module>
DtypeDefinition('uintle', Bits._setuintle, Bits._getuintle, int, False, uint_bits2chars,
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 275, in __init__
if self.allowed_lengths:
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 244, in __len__
return len(self.value)
^^^^^^^^^^^^^^^
OverflowError: Python int too large to convert to C ssize_t`
### What version of Home Assistant Core has the issue?
core-2024.4.4
### What was the last working version of Home Assistant Core?
core-2024.4.3
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
edl21
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/edl21/
### Diagnostics information
not available
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
Logger: homeassistant.loader
Quelle: loader.py:1232
Erstmals aufgetreten: 10:16:33 (2 Vorkommnisse)
Zuletzt protokolliert: 10:16:34
Unexpected exception importing platform homeassistant.components.edl21.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1232, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1264, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/edl21/sensor.py", line 9, in <module>
from sml import SmlGetListResponse
File "/usr/local/lib/python3.12/site-packages/sml/__init__.py", line 32, in <module>
import bitstring
File "/usr/local/lib/python3.12/site-packages/bitstring/__init__.py", line 197, in <module>
DtypeDefinition('uintle', Bits._setuintle, Bits._getuintle, int, False, uint_bits2chars,
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 275, in __init__
if self.allowed_lengths:
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 244, in __len__
return len(self.value)
^^^^^^^^^^^^^^^
OverflowError: Python int too large to convert to C ssize_t
Logger: homeassistant.config_entries
Quelle: config_entries.py:551
Erstmals aufgetreten: 10:16:34 (1 Vorkommnisse)
Zuletzt protokolliert: 10:16:34
Error setting up entry Smart Meter for edl21
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1232, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1264, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, 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 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/edl21/sensor.py", line 9, in <module>
from sml import SmlGetListResponse
File "/usr/local/lib/python3.12/site-packages/sml/__init__.py", line 32, in <module>
import bitstring
File "/usr/local/lib/python3.12/site-packages/bitstring/__init__.py", line 197, in <module>
DtypeDefinition('uintle', Bits._setuintle, Bits._getuintle, int, False, uint_bits2chars,
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 275, in __init__
if self.allowed_lengths:
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bitstring/dtypes.py", line 244, in __len__
return len(self.value)
^^^^^^^^^^^^^^^
OverflowError: Python int too large to convert to C ssize_t
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/edl21/__init__.py", line 12, in async_setup_entry
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1860, in async_forward_entry_setups
await integration.async_get_platforms(platforms)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1145, in async_get_platforms
import_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1133, in async_get_platforms
platforms.update(self._load_platforms(platform_names))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1060, in _load_platforms
platform_name: self._load_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1252, in _load_platform
raise ImportError(
ImportError: Exception importing homeassistant.components.edl21.sensor
```
### Additional information
_No response_