Skip to content

Warning - non existing via_device #229

Closed
@astrandb

Description

The problem

Log message appears for cofigurations with multiple devices - and for AirLink devices:
Detected that custom integration 'weatherlink' calls device_registry.async_get_or_create referencing a non existing via_device

Version of Weatherlink integration having the issue?

2024.12.0

Version of Home Assistant Core having the issue?

2025.1.0

Anything in the logs that might be useful for us?

Detected that custom integration 'weatherlink' calls `device_registry.async_get_or_create` referencing a non existing 
`via_device` ('weatherlink', 'c04a572b-583e-4e45-a222-7444e0ae7697'), with device info: {'configuration_url': 'https://www.weatherlink.com/', 'identifiers': {('weatherlink', 'c04a572b-583e-4e45-a222-7444e0ae7697-716449')},
'manufacturer': 'Davis Instruments', 'model': 'AirLink', 'name': 'AirLink Saltsjö-Duvnäs AQ', 'serial_number': '', 'sw_version': None, 'via_device': ('weatherlink', 'c04a572b-583e-4e45-a222-7444e0ae7697')} at custom_components/weatherlink/binary_sensor.py, line 124: async_add_entities(entities + aux_entities). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/astrandb/weatherlink/issues

Diagnostic data file

No response

Additional information

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions