Skip to content

[REFACTOR] Make live measurement types an enum #44

@BeatsuDev

Description

@BeatsuDev

Why this should be refactored

Enables IntelliSense/Autocomplete + clearer error message if typed wrong.

What breaking changes does this have for the end-user

New syntax for registering live measurement callbacks:

@home.event(tibber.enums.LiveMeasurement)
async def ...():
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomerslow priorityThis issue will probably not be looked into for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions