mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Create but disable-by-default RPM and GPM sensors (#56549)
This commit is contained in:
parent
a5c6a65161
commit
b43d377b53
@ -69,15 +69,16 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
for pump_num, pump_data in coordinator.data[SL_DATA.KEY_PUMPS].items():
|
||||
if pump_data["data"] != 0 and "currentWatts" in pump_data:
|
||||
for pump_key in pump_data:
|
||||
# Considerations for Intelliflow VF
|
||||
enabled = True
|
||||
# Assumptions for Intelliflow VF
|
||||
if pump_data["pumpType"] == 1 and pump_key == "currentRPM":
|
||||
continue
|
||||
# Considerations for Intelliflow VS
|
||||
enabled = False
|
||||
# Assumptions for Intelliflow VS
|
||||
if pump_data["pumpType"] == 2 and pump_key == "currentGPM":
|
||||
continue
|
||||
enabled = False
|
||||
if pump_key in SUPPORTED_PUMP_SENSORS:
|
||||
entities.append(
|
||||
ScreenLogicPumpSensor(coordinator, pump_num, pump_key)
|
||||
ScreenLogicPumpSensor(coordinator, pump_num, pump_key, enabled)
|
||||
)
|
||||
|
||||
# IntelliChem sensors
|
||||
|
Loading…
x
Reference in New Issue
Block a user