Skip to content

HP Color LaserJet Pro M252dw, "Black Toner", will stop working in Home Assistant 2025.12.0 #198

Description

@wboerhout

After adding the integration, the following appeared in the log file:

2025-04-04 08:24:31.971 WARNING (MainThread) [homeassistant.helpers.frame]

Detected that custom integration 'hpprinter' calls `device_registry.async_get_or_create` referencing a non existing `via_device` ('hpprinter', '01jqzqhwrb3q8k563mbczpspqe_printer'),
with device info: 
{'identifiers': {('hpprinter', '01jqzqhwrb3q8k563mbczpspqe_consumable_k')}, 'manufacturer': 'clone', 'model': '201X', 'name': 'HP Color LaserJet Pro M252dw (hp252w.local) Black Toner', 'serial_number': '100731479', 'via_device': ('hpprinter', '01jqzqhwrb3q8k563mbczpspqe_printer')}
at custom_components/hpprinter/common/base_entity.py, line 93: async_add_entities(entities, True).

This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/elad-bar/ha-hpprinter/issues

HA info:

arch: aarch64
channel: stable
docker: 28.0.4
features:
- reboot
- shutdown
- services
- network
- hostname
- timedate
- os_agent
- haos
- resolved
- journal
- disk
- mount
hassos: "15.1"
homeassistant: 2025.3.4
hostname: homeassistant
logging: info
machine: raspberrypi4-64
operating_system: Home Assistant OS 15.1
state: running
supervisor: 2025.03.4
supported: true
supported_arch:
- aarch64
- armv7
- armhf
timezone: Europe/Amsterdam

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