Skip to content

Deprecated constant CONCENTRATION_MICROGRAMS_PER_CUBIC_METER (removed in HA Core 2027.8) #78

Description

@elarsson1

Running HA Core 2026.8.0 with Custom VeSync v1.4.0 (latest; also present on main). Startup logs:

The deprecated constant CONCENTRATION_MICROGRAMS_PER_CUBIC_METER was used from vesync.
It will be removed in HA Core 2027.8. Use UnitOfDensity.MICROGRAMS_PER_CUBIC_METER instead

Source: custom_components/vesync/sensor.py — import at line 12, usages at lines 375, 412, 449. Fix: replace CONCENTRATION_MICROGRAMS_PER_CUBIC_METER with UnitOfDensity.MICROGRAMS_PER_CUBIC_METER.

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