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

Error adding entity None for domain device_tracker with platform sagemcom_fast #127

Open
MagnusErler opened this issue May 2, 2024 · 9 comments

Comments

@MagnusErler
Copy link
Contributor

Versions

Key Value
Home Assistant version 2024.5.0
Integration version 0.3.2
Sagemcom F@st model
Sagemcom F@st firmware (optional)

Describe the bug

Found an error in Home Assistant Core log

To Reproduce

Steps to reproduce the behavior:

Update Home Assistant to core 2024.5.0

Expected behavior

No Error

Log

Logger: homeassistant.components.device_tracker
Source: helpers/entity_platform.py:580
integration: Device tracker ([documentation](https://www.home-assistant.io/integrations/device_tracker), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+device_tracker%22))
First occurred: May 1, 2024 at 22:04:12 (1 occurrences)
Last logged: May 1, 2024 at 22:04:12

Error adding entity None for domain device_tracker with platform sagemcom_fast
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 716, in _async_add_entity
    entity_name = entity.name
                  ^^^^^^^^^^^
  File "/config/custom_components/sagemcom_fast/device_tracker.py", line 69, in name
    or self.device.mac_address
       ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Device' object has no attribute 'mac_address'. Did you mean: 'ip_address'?

[bug]

Copy link

github-actions bot commented Jun 2, 2024

'There hasn't been any activity on this issue recently. Is this issue still present?
Please make sure to update to the latest Home Assistant version and version of this integration to see if that solves the issue. Let us know if that works for you by adding a comment 👍.
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.'

@iMicknl
Copy link
Owner

iMicknl commented Jun 2, 2024

Thanks @MagnusErler! I need to see what changed in HA..

Copy link

github-actions bot commented Jul 3, 2024

'There hasn't been any activity on this issue recently. Is this issue still present?
Please make sure to update to the latest Home Assistant version and version of this integration to see if that solves the issue. Let us know if that works for you by adding a comment 👍.
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.'

@MagnusErler
Copy link
Contributor Author

Still present in v0.3.5

@iMicknl iMicknl reopened this Aug 26, 2024
@iMicknl
Copy link
Owner

iMicknl commented Aug 26, 2024

This looks like an underlying issue in the python-sagemcom-api library, where your device has not all properties available. Did you always encounter this issue, or only after updating?

@MagnusErler
Copy link
Contributor Author

I have seen the warning in the HA log since HA 2024.5.0 (I have 2024.8.2 now) and ha-sagemcom-fast since v0.3.2

Copy link

'There hasn't been any activity on this issue recently. Is this issue still present?
Please make sure to update to the latest Home Assistant version and version of this integration to see if that solves the issue. Let us know if that works for you by adding a comment 👍.
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.'

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
@jvberlo
Copy link

jvberlo commented Oct 8, 2024

This error message still appears. in HA version 2024.10.1
Sagemcom v0.3.5

2024-10-08 15:21:26.101 ERROR (MainThread) [homeassistant.components.device_tracker] Error adding entity None for domain device_tracker with platform sagemcom_fast
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 733, in _async_add_entity
entity_name = entity.name
^^^^^^^^^^^
File "/config/custom_components/sagemcom_fast/device_tracker.py", line 70, in name
or self.device.mac_address
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Device' object has no attribute 'mac_address'. Did you mean: 'ip_address'?

@MagnusErler
Copy link
Contributor Author

Still present in v0.3.6 and HA 2024.11.2

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

3 participants