Skip to content

Fix ESPHome fan preset deprecation warning #35

@EdenNelson

Description

@EdenNelson

ESPHome warns that setting supported fan preset modes through FanTraits is deprecated.

The Levoit fan component currently registers supported preset modes on FanTraits. ESPHome 2026.5 warns that this should move to the Fan entity API instead.

This should be updated so the component remains compatible with upcoming ESPHome releases while preserving existing fan behavior and supported preset modes.

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