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

Huawei LTE component with E5172As-22 #120696

Closed
homerojleal opened this issue Jun 27, 2024 · 4 comments
Closed

Huawei LTE component with E5172As-22 #120696

homerojleal opened this issue Jun 27, 2024 · 4 comments

Comments

@homerojleal
Copy link

The problem

Huawei LTE component with E5172As-22 device gives an erro after setup.

What version of Home Assistant Core has the issue?

System Information version | core-2024.6.4 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.12.2 os_name | Linux os_version | 6.6.31-haos-raspi arch | aarch64 timezone | Europe/Lisbon config_dir | /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | failed to load: timeout GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1390 Downloaded Repositories | 4 HACS Data | ok
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | failed to load: timeout
Home Assistant Supervisor host_os | Home Assistant OS 12.4 -- | -- update_channel | stable supervisor_version | supervisor-2024.06.2 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 116.8 GB disk_used | 10.0 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.14.0), File editor (5.8.0), Studio Code Server (5.15.0), ESPHome (2024.6.1), Samba Backup (5.2.0), Matter Server (6.1.2)
Instituto Português do Mar e Atmosfera (IPMA) api_endpoint_reachable | failed to load: timeout -- | --
Dashboards dashboards | 2 -- | -- resources | 0 views | 1 mode | storage
Recorder oldest_recorder_run | June 17, 2024 at 16:59 -- | -- current_recorder_run | June 27, 2024 at 12:48 estimated_db_size | 247.05 MiB database_engine | sqlite database_version | 3.44.2

What was the last working version of Home Assistant Core?

core-2024.6.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

https://www.home-assistant.io/integrations/huawei_lte/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 12:48:05 (2 occurrences)
Last logged: 12:48:52

Error setting up entry E5172As-22 for huawei_lte
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/huawei_lte/__init__.py", line 362, in async_setup_entry
    await hass.async_add_executor_job(router.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/huawei_lte/__init__.py", line 260, in update
    self._get_data(KEY_DEVICE_SIGNAL, self.client.device.signal)
  File "/usr/src/homeassistant/homeassistant/components/huawei_lte/__init__.py", line 197, in _get_data
    self.data[key] = func()
                     ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/huawei_lte_api/api/Device.py", line 40, in signal
    return self._session.get('device/signal')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/huawei_lte_api/Session.py", line 34, in wrapped
    return fn(*args, **kw)
           ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/huawei_lte_api/Session.py", line 305, in get
    return cast(dict, self._check_response_status(self._process_response_data(response)))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/huawei_lte_api/Session.py", line 152, in _check_response_status
    if not data['error']['message']:
           ~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'message'

Additional information

No response

@home-assistant
Copy link

Hey there @scop, @fphammerle, mind taking a look at this issue as it has been labeled with an integration (huawei_lte) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of huawei_lte can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign huawei_lte Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


huawei_lte documentation
huawei_lte source
(message by IssueLinks)

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
@scop
Copy link
Member

scop commented Nov 24, 2024

Thank you for the report and sorry about lack of timely response.

Based on the backtrace posted, the error occurs within the huawei-lte-api library in a way that we likely cannot affect in Home Assistant.

Could you report this against huawei-lte-api at https://github.com/Salamek/huawei-lte-api, and mention me (@scop) in the bug report? Thanks in advance!

@scop
Copy link
Member

scop commented Nov 24, 2024

Actually, I just found you had filed an upstream bug report about this already, and it is said to be fixed (at least to some extent) and released in the current version of huawei-lte-api: Salamek/huawei-lte-api#217

The latest version is included in HA 2024.11, so perhaps your device works better with it, or gives a backtrace pointing to further issues.

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

No branches or pull requests

2 participants