Add support for feature units (#843)

Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
This commit is contained in:
Teemu R
2024-04-22 11:25:30 +02:00
committed by GitHub
parent 651ad96144
commit 890900daf3
4 changed files with 27 additions and 25 deletions

View File

@@ -36,6 +36,8 @@ class Feature:
container: Any = None
#: Icon suggestion
icon: str | None = None
#: Unit, if applicable
unit: str | None = None
#: Type of the feature
type: FeatureType = FeatureType.Sensor