Skip to content

Commit

Permalink
remove suggested_ until later release
Browse files Browse the repository at this point in the history
  • Loading branch information
bj00rn committed Feb 21, 2023
1 parent f0c8212 commit 40eae4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/ferroamp_portal/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/bj00rn/ha-ferroamp-portal",
"iot_class": "local_push",
"issue_tracker": "https://github.com/bj00rn/ha-ferroamp-portal",
"version": "0.0.1",
"version": "0.0.2",
"config_flow": true,
"codeowners": [
"@bj00rn"
Expand Down
14 changes: 7 additions & 7 deletions custom_components/ferroamp_portal/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def native_value(self):
name="EV Active power",
device_class=SensorDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.WATT,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfPower.KILO_WATT,
# suggested_display_precision=1,
# suggested_unit_of_measurement=UnitOfPower.KILO_WATT,
),
},
"energyActiveMeter": {
Expand All @@ -62,8 +62,8 @@ def native_value(self):
device_class=SensorDeviceClass.ENERGY,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
state_class=SensorStateClass.TOTAL_INCREASING,
suggested_display_precision=1,
suggested_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
# suggested_display_precision=1,
# suggested_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
),
},
"currentL1": {
Expand All @@ -74,7 +74,7 @@ def native_value(self):
name="EV Current L1",
device_class=SensorDeviceClass.CURRENT,
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
suggested_display_precision=1,
# suggested_display_precision=1,
),
},
"currentL2": {
Expand All @@ -85,7 +85,7 @@ def native_value(self):
name="EV Current L2",
device_class=SensorDeviceClass.CURRENT,
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
suggested_display_precision=1,
# suggested_display_precision=1,
),
},
"currentL3": {
Expand All @@ -96,7 +96,7 @@ def native_value(self):
name="EV Current L3",
device_class=SensorDeviceClass.CURRENT,
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
suggested_display_precision=1,
# suggested_display_precision=1,
),
},
}
Expand Down

0 comments on commit 40eae4c

Please sign in to comment.