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

Release v1.0.11 - v1.0.11 error when testing with 2024.1.0b2 #103

Closed
pgsylvestre opened this issue Dec 30, 2023 · 9 comments
Closed

Release v1.0.11 - v1.0.11 error when testing with 2024.1.0b2 #103

pgsylvestre opened this issue Dec 30, 2023 · 9 comments

Comments

@pgsylvestre
Copy link

Logger: homeassistant.setup
Source: setup.py:251
First occurred: 4:05:04 AM (1 occurrences)
Last logged: 4:05:04 AM

Setup failed for custom integration 'hpprinter': Unable to import component: Exception importing custom_components.hpprinter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 822, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/hpprinter/init.py", line 6, in
from custom_components.hpprinter.helpers import (
File "/config/custom_components/hpprinter/helpers/init.py", line 8, in
from ..managers.home_assistant import HPPrinterHomeAssistant
File "/config/custom_components/hpprinter/managers/home_assistant.py", line 21, in
from ..managers.entity_manager import EntityManager
File "/config/custom_components/hpprinter/managers/entity_manager.py", line 11, in
from ..models.entity_data import EntityData
File "/config/custom_components/hpprinter/models/entity_data.py", line 6, in
class EntityData:
File "/config/custom_components/hpprinter/models/entity_data.py", line 15, in EntityData
binary_sensor_device_class: Optional[BinarySensorDeviceClass]
^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'BinarySensorDeviceClass' is not defined

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 830, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.hpprinter

@KyleStilkey
Copy link

Same issue still with the latest release and Home Assistant B3.

@elad-bar
Copy link
Owner

elad-bar commented Jan 2, 2024

Fixed in v1.0.12, pls check

@marcokreeft87
Copy link

This is not the same. I get this error now:

You are running Home Assistant version '2023.12.4', but this repository requires minimum version '2024.1.0b0' to be installed.

Please read before closing an issue..

@pgsylvestre
Copy link
Author

Fixed for 2024.1.0bx. Great work. Thanks.

@pgsylvestre
Copy link
Author

Closing.

@hmmbob
Copy link
Contributor

hmmbob commented Jan 2, 2024

Confirming that 1.0.12 works fine on 2024.1.0b2

@KyleStilkey
Copy link

I can also confirm that the latest release has fixed this issue.

@marcokreeft87
Copy link

Seems to have fixed the notifications now too

@elad-bar
Copy link
Owner

elad-bar commented Jan 2, 2024

Thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants