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] Berror error handling #1143

Open
2 tasks
Bascht74 opened this issue Jan 19, 2024 · 1 comment
Open
2 tasks

[BUG] Berror error handling #1143

Bascht74 opened this issue Jan 19, 2024 · 1 comment
Labels
bug Something isn't working homeassistant

Comments

@Bascht74
Copy link

PROBLEM DESCRIPTION

I cannot initialize a panel and I don't find the error.
Maybe I deleted an entity but this should not generate the error message in my optinion.
There should be an error handling that skips the entity with no uuid and generate a warning in the log.
The applicatio would be more robust...

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • Provide your apps.yaml (or your config):
  apps.yaml here:


  • Go to Settings>Add-ons>AppDaemon>Log (or the output of your TS script) and then, provide the output of the log during your issue/bug occurs:
  Log output here:

2024-01-19 07:48:54.870453 WARNING panel-eg-wohnzimmer: ------------------------------------------------------------
2024-01-19 07:48:54.870598 WARNING panel-eg-wohnzimmer: Unexpected error running initialize() for panel-eg-wohnzimmer
2024-01-19 07:48:54.870677 WARNING panel-eg-wohnzimmer: ------------------------------------------------------------
2024-01-19 07:48:54.871469 WARNING panel-eg-wohnzimmer: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/appdaemon/app_management.py", line 162, in initialize_app
    await utils.run_in_executor(self, init)
  File "/usr/lib/python3.11/site-packages/appdaemon/utils.py", line 304, in run_in_executor
    response = future.result()
               ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py", line 27, in initialize
    controller = LuiController(cfg, mqttsend.send_mqtt_msg)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py", line 27, in __init__
    self.register_callbacks()
  File "/homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py", line 150, in register_callbacks
    items = self._config.get_all_entity_names()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py", line 229, in get_all_entity_names
    entities.extend(card.get_entity_names())
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py", line 82, in get_entity_names
    entityIds.setdefault(self.entity.uuid, []).append(val.get("entity"))
                         ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'uuid'

2024-01-19 07:48:54.871586 WARNING panel-eg-wohnzimmer: ------------------------------------------------------------


TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

the panel initializes and there is a warning in the log

SCREENSHOTS

If applicable, add screenshots/pictures to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.
Please note here in case you are using ioBroker

PANEL / FIRMWARE VERION

current one, just flashed last week --> 4.3.3

@Bascht74 Bascht74 added the bug Something isn't working label Jan 19, 2024
@joBr99
Copy link
Owner

joBr99 commented Jan 19, 2024

as I don't have a glass sphere, please add your apps.yaml to the issue - likely that it has something to do with the statusIcon config

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

No branches or pull requests

3 participants