Skip to content

getState not working with zero humidity #14

@eresgit

Description

@eresgit

/pycalima/Calima.py", line 172, in getState
return FanState(round(math.log2(v[0])*10, 2), v[1]/4, v[2], v[3], trigger)
ValueError: math domain error

Looks like a problem when v[0] = 0

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