Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Deprecation warning with HA Core 2025.5 #19

@miggi92

Description

@miggi92

It seems that the integration uses a type, which will be deprecated with HA 2025.5.

I'm getting a warning in my log.

Home assistant Log

Logger: homeassistant.helpers.typing
Quelle: helpers/deprecation.py:222
Erstmals aufgetreten: 16:08:28 (1 Vorkommnisse)
Zuletzt protokolliert: 16:08:28

HomeAssistantType was used from abfallplus, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'abfallplus' custom integration

Analysis

Probably this line has to be changed:

from homeassistant.helpers.typing import HomeAssistantType

to
from homeassistant.core import HomeAssistant

and

hass: HomeAssistantType,

to
hass: HomeAssistant,

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