Skip to content

HA autodiscovery: need to change object_id (slug) to default_entity_id (domain.slug) #376

@Troon

Description

@Troon

After updating HA to 2025.10, I get this message for each of the entities:

The configuration for entity sensor.MY_VIN_obc_power_three_phase uses the
deprecated option object_id to set the default entity id. Replace the
"object_id": "MY_VIN_obc_power_three_phase" option with
"default_entity_id": "sensor.MY_VIN_obc_power_three_phase" in your published
discovery configuration to fix this issue, or contact the maintainer of the
integration that published this config to fix this.
This will stop working in Home Assistant Core 2026.4

Looks like the issue is on line 1051 of src/integrations/home_assistant/discovery.py.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions