mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix issues with metric conversion and single pump type for filter pumps in Omnilogic integration (#41777)
This commit is contained in:
parent
fd79c141b2
commit
06b99a1ff9
@ -175,7 +175,7 @@ class OmniLogicSaltLevelSensor(OmnilogicSensor):
|
|||||||
unit_of_measurement = self._unit
|
unit_of_measurement = self._unit
|
||||||
|
|
||||||
if self._unit_type == "Metric":
|
if self._unit_type == "Metric":
|
||||||
salt_return = round(salt_return / 1000, 2)
|
salt_return = round(int(salt_return) / 1000, 2)
|
||||||
unit_of_measurement = f"{MASS_GRAMS}/{VOLUME_LITERS}"
|
unit_of_measurement = f"{MASS_GRAMS}/{VOLUME_LITERS}"
|
||||||
|
|
||||||
self._unit = unit_of_measurement
|
self._unit = unit_of_measurement
|
||||||
@ -279,7 +279,7 @@ SENSOR_TYPES = {
|
|||||||
"icon": "mdi:speedometer",
|
"icon": "mdi:speedometer",
|
||||||
"unit": PERCENTAGE,
|
"unit": PERCENTAGE,
|
||||||
"guard_condition": [
|
"guard_condition": [
|
||||||
{"Type": "FMT_SINGLE_SPEED"},
|
{"Filter-Type": "FMT_SINGLE_SPEED"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user