Skip to content

Helpers interface change in HomeAsstiant 2024+ breaks component #9

@rougeSE

Description

@rougeSE

This is fixed in PR #8, but never saw an issue for it, so capturing that this is broken.

When the component is loaded, the following error shows in the log and all of the senors are "Enitity not found".

Logger: homeassistant.setup
Source: setup.py:425
First occurred: 12:47:43 PM (1 occurrence)
Last logged: 12:47:43 PM
Error during setup of component heatermeter: 'HomeAssistant' object has no attribute 'helpers'

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 425, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/heatermeter/init.py", line 133, in setup
hass.helpers.discovery.load_platform('sensor', DOMAIN, {}, config)
^^^^^^^^^^^^
AttributeError: 'HomeAssistant' object has no attribute 'helpers'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions