Skip to content

AttributeError: object has no attribute '_friendly_name_internal' on all entities during setup #540

Description

@308Chaucer

`

Title: AttributeError: object has no attribute '_friendly_name_internal' on all entities during setup

Describe the bug

The integration successfully authenticates and retrieves the device list from Alarm.com, but fails completely during entity creation. None of the entities populate in Home Assistant.

Every device type (AlarmControlPanel, BinarySensor, AttributeBinarySensor, Cover, DebugButton, Climate) throws an AttributeError: object has no attribute '_friendly_name_internal' crash during _async_add_entity[cite: 1].

Steps to Reproduce

  1. Install and configure the Alarm.com integration.
  2. Restart Home Assistant.
  3. The integration initializes and successfully fetches system data.
  4. Entity creation fails, throwing AttributeError for every device, resulting in unavailable entities and no data updates.

Expected behavior

Entities should be created successfully without attribute errors so that state updates can be received and displayed in Home Assistant.

Relevant log output

The core error is identical across all domains[cite: 1]. Here is the traceback for the Alarm Control Panel (full log attached):

2026-06-08 13:31:15.689 INFO (MainThread) [homeassistant.components.alarm_control_panel] Setting up alarmdotcom.alarm_control_panel
2026-06-08 13:31:15.689 INFO (MainThread) [custom_components.alarmdotcom.base_device] custom_components.alarmdotcom.base_device: Initializing [partition: Panel (106899236-127)].
2026-06-08 13:31:15.703 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error adding entity alarm_control_panel.panel for domain alarm_control_panel with platform alarmdotcom
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 716, in _async_add_entities
    await self._async_add_entity(
        entity, False, entity_registry, config_subentry_id
    )
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1048, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1439, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/alarmdotcom/base_device.py", 

[home-assistant_2026-06-09T00-35-26.250Z.log](https://github.com/user-attachments/files/28730841/home-assistant_2026-06-09T00-35-26.250Z.log)

line 74, in async_added_to_hass
    self._update_device_data()
  File "/config/custom_components/alarmdotcom/base_device.py", line 106, in _update_device_data
    f"Updated {self.device_type_name} {self._friendly_name_internal()} ({self._adc_id}): {self.state}"
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AlarmControlPanel' object has no attribute '_friendly_name_internal'

Additional Context

  • Home Assistant Version: 2026.6.1[cite: 1]
  • Full Log: See attached home-assistant_2026-06-09T00-35-26.250Z.log file.
  • The logs also show a deprecation warning right before the crashes: Detected that custom integration 'alarmdotcom' calls device_registry.async_get_or_create referencing a non existing via_device ('alarmdotcom', None)... This will stop working in Home Assistant 2025.12.0[cite: 1]
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions