Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quirks v2 entities missing unit when setting device class #198

Closed
GitforZhangXL opened this issue Sep 9, 2024 · 1 comment
Closed

Quirks v2 entities missing unit when setting device class #198

GitforZhangXL opened this issue Sep 9, 2024 · 1 comment
Labels
bug Confirmed bug

Comments

@GitforZhangXL
Copy link

GitforZhangXL commented Sep 9, 2024

Use the following code to create a sensor entity, but device_class does not automatically include the sensor unit. Does the code need to be modified??

if entity_metadata.device_class is None and entity_metadata.unit is not None:

@TheJulianJES TheJulianJES added the bug Confirmed bug label Sep 9, 2024
@TheJulianJES TheJulianJES changed the title missing unit use quicks V2 Quirks v2 entities missing unit when setting device class Sep 9, 2024
@dmulcahey
Copy link
Contributor

fixed by #219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

3 participants