Skip to content

Return value when no bit flag matches #229

Description

@phil11c

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Bit flags are often use as error-code mapping.
In my case a 16 bit, used for several different errors that can occure at the same time.

A good example was desribed in this issue by @maniac-semal

But: if everything works as expected, no bit flag matches and the sensor gets status "unknown" or, and that is the problem, it stays on an old error code.

Describe the solution you'd like

Feature request:
adding a value, if none of the bit flags matches, like "0" or "none".

Workaround:
modification of conversion.py like described by @maniac-semal (thanks).

Describe alternatives you've considered

unfortunatly none

Additional context

none

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