Skip to content

Conversation

@nijel
Copy link
Contributor

@nijel nijel commented Mar 7, 2023

The unit should be None in that case and not an empty string.

Fixes #22

  • unit="" should be used for numerical entities without unit
  • unit=None should be used for non-numerical entities

The unit should be None in that case and not an empty string.

Fixes #22
@sfstar
Copy link
Owner

sfstar commented May 1, 2023

LGTM.
I will test drive this change a couple of days after the merge before trying to publish it.

@sfstar sfstar merged commit fcd1309 into sfstar:main May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Device class seems wrong for some sensors

2 participants