Skip to content

Deprecation warning: DhcpServiceInfo import location will break in HA 2026.2 #127

@J-Fads

Description

@J-Fads

System Health details

Image

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

** This is a duplicate of #125 - it was labeled as a 'Feature Request' that might not be seen. **

Home Assistant Core is warning that ha-aquanta is using a deprecated import path for DhcpServiceInfo.

This will break in Home Assistant Core 2026.2 (February 2026).

Current log warning

DhcpServiceInfo was used from aquanta, this is a deprecated constant which will be removed in HA Core 2026.2. Use homeassistant.helpers.service_info.dhcp.DhcpServiceInfo instead

Suggested fix

Update the import path in manifest.json or relevant files:

# Old:
from homeassistant.components.dhcp import DhcpServiceInfo

# New:
from homeassistant.helpers.service_info.dhcp import DhcpServiceInfo

### Reproduction steps

1. Start Home Assistant with Aquanta custom integration enabled
2. Check logs after boot
3. Observe deprecation warning regarding DhcpServiceInfo



### Debug logs

```Text
message already contains the exact deprecation line.

Diagnostics dump

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions