From ebba2d08d78545b101e87a240e443ec93b746cd1 Mon Sep 17 00:00:00 2001 From: BenPru Date: Fri, 23 Dec 2022 00:40:45 +0100 Subject: [PATCH] Remove wrong switch --- custom_components/luxtronik/switch.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/custom_components/luxtronik/switch.py b/custom_components/luxtronik/switch.py index 547288c..d95f6b7 100644 --- a/custom_components/luxtronik/switch.py +++ b/custom_components/luxtronik/switch.py @@ -96,13 +96,6 @@ async def async_setup_entry( if deviceInfoDomesticWater is not None: text_domestic_water_mode_auto = get_sensor_text( lang, 'domestic_water_mode_auto') - text_circulation_pump = get_sensor_text(lang, "circulation_pump") - if luxtronik.has_domestic_water_circulation_pump: - circulation_pump_unique_id = 'domestic_water_circulation_pump_release' - text_domestic_water_circulation_pump = get_sensor_text(lang, "domestic_water_circulation_pump_release") - else: - circulation_pump_unique_id = 'domestic_water_charging_pump_release' - text_domestic_water_circulation_pump = get_sensor_text(lang, "domestic_water_charging_pump_release") entities += [ LuxtronikSwitch( on_state=LuxMode.automatic.value, off_state=LuxMode.off.value, @@ -112,13 +105,6 @@ async def async_setup_entry( unique_id='domestic_water', name=text_domestic_water_mode_auto, icon='mdi:water-boiler-auto', icon_off='mdi:water-boiler-off', device_class=DEVICE_CLASS_HEAT), - LuxtronikSwitch( - hass=hass, luxtronik=luxtronik, - deviceInfo=deviceInfoDomesticWater, - sensor_key='parameters.ID_Einst_BWZIP_akt', - unique_id=circulation_pump_unique_id, - name=text_domestic_water_circulation_pump, icon='mdi:pump', - device_class=DEVICE_CLASS_RUNNING, entity_category=EntityCategory.CONFIG), ] deviceInfoCooling = hass.data[f"{DOMAIN}_DeviceInfo_Cooling"]