mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Fix issues with metric conversion and single pump type for filter pumps in Omnilogic integration (#41777)
This commit is contained in:
@@ -175,7 +175,7 @@ class OmniLogicSaltLevelSensor(OmnilogicSensor):
|
||||
unit_of_measurement = self._unit
|
||||
|
||||
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}"
|
||||
|
||||
self._unit = unit_of_measurement
|
||||
@@ -279,7 +279,7 @@ SENSOR_TYPES = {
|
||||
"icon": "mdi:speedometer",
|
||||
"unit": PERCENTAGE,
|
||||
"guard_condition": [
|
||||
{"Type": "FMT_SINGLE_SPEED"},
|
||||
{"Filter-Type": "FMT_SINGLE_SPEED"},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user