diff --git a/custom_components/tuya_local/climate.py b/custom_components/tuya_local/climate.py index 5cfeabe87b..c3d6d844d9 100644 --- a/custom_components/tuya_local/climate.py +++ b/custom_components/tuya_local/climate.py @@ -11,7 +11,6 @@ HVACMode, ) from homeassistant.components.climate.const import ( - ATTR_AUX_HEAT, ATTR_CURRENT_HUMIDITY, ATTR_CURRENT_TEMPERATURE, ATTR_FAN_MODE, @@ -75,7 +74,6 @@ def __init__(self, device: TuyaLocalDevice, config: TuyaEntityConfig): super().__init__() dps_map = self._init_begin(device, config) - self._aux_heat_dps = dps_map.pop(ATTR_AUX_HEAT, None) self._current_temperature_dps = dps_map.pop( ATTR_CURRENT_TEMPERATURE, None, @@ -102,8 +100,6 @@ def __init__(self, device: TuyaLocalDevice, config: TuyaEntityConfig): # checking whether we are falling back on the auto-generation. self._enable_turn_on_off_backwards_compatibility = False - if self._aux_heat_dps: - self._attr_supported_features |= ClimateEntityFeature.AUX_HEAT if self._fan_mode_dps: self._attr_supported_features |= ClimateEntityFeature.FAN_MODE if self._humidity_dps: @@ -380,24 +376,6 @@ async def async_turn_off(self): else: await super().async_turn_off() - @property - def is_aux_heat(self): - """Return state of aux heater""" - if self._aux_heat_dps: - return self._aux_heat_dps.get_value(self._device) - - async def async_turn_aux_heat_on(self): - """Turn on aux heater.""" - if self._aux_heat_dps is None: - raise NotImplementedError() - await self._aux_heat_dps.async_set_value(self._device, True) - - async def async_turn_aux_heat_off(self): - """Turn off aux heater.""" - if self._aux_heat_dps is None: - raise NotImplementedError() - await self._aux_heat_dps.async_set_value(self._device, False) - @property def preset_mode(self): """Return the current preset mode.""" diff --git a/custom_components/tuya_local/devices/README.md b/custom_components/tuya_local/devices/README.md index e18876540b..fa9fc43788 100644 --- a/custom_components/tuya_local/devices/README.md +++ b/custom_components/tuya_local/devices/README.md @@ -556,7 +556,6 @@ from the camera. **NOTE**: tuya-local does not directly support video streaming from cameras. Some cameras provide ONVIF or WebRTC compliant streams locally which you can use the relevant integrations to capture, others may be cloud-only. ### `climate` -- **aux_heat** (optional, boolean, DEPRECATED) a dp to control the aux heat switch if the device has one. Note this is being deprecated by HA and no longer accessible from the UI since HA 2023.9, though the deprecation announcement is yet to be made as of 2023.11. It is recommended not to use this, and instead use an separate switch entity. - **current_temperature** (optional, number) a dp that reports the current temperature. - **current_humidity** (optional, number) a dp that reports the current humidity (%). - **fan_mode** (optional, mapping of strings) a dp to control the fan mode if available. diff --git a/custom_components/tuya_local/devices/its_45hd_heatpump.yaml b/custom_components/tuya_local/devices/its_45hd_heatpump.yaml index 75cea80d54..65804b77a1 100644 --- a/custom_components/tuya_local/devices/its_45hd_heatpump.yaml +++ b/custom_components/tuya_local/devices/its_45hd_heatpump.yaml @@ -71,9 +71,6 @@ primary_entity: - id: 30 type: boolean name: chlorination - - id: 32 - type: boolean - name: aux_heat - id: 40 type: integer name: model_code diff --git a/custom_components/tuya_local/devices/sendo_airconditioner_c.yaml b/custom_components/tuya_local/devices/sendo_airconditioner_c.yaml index 906b47c5f1..b49369722a 100644 --- a/custom_components/tuya_local/devices/sendo_airconditioner_c.yaml +++ b/custom_components/tuya_local/devices/sendo_airconditioner_c.yaml @@ -49,9 +49,6 @@ primary_entity: value: eco - dps_val: false value: comfort - - id: 12 - name: aux_heat - type: boolean - id: 33 name: swing_mode type: boolean diff --git a/custom_components/tuya_local/devices/vivax_heatpump.yaml b/custom_components/tuya_local/devices/vivax_heatpump.yaml index 9f549726eb..d7bd83c6a4 100644 --- a/custom_components/tuya_local/devices/vivax_heatpump.yaml +++ b/custom_components/tuya_local/devices/vivax_heatpump.yaml @@ -74,9 +74,6 @@ primary_entity: value: eco - dps_val: false value: comfort - - id: 12 - type: boolean - name: aux_heat - id: 18 type: integer name: current_humidity diff --git a/tests/test_device_config.py b/tests/test_device_config.py index a87e5abf02..3e0e035a09 100644 --- a/tests/test_device_config.py +++ b/tests/test_device_config.py @@ -171,7 +171,6 @@ "climate": { "required": [], "optional": [ - "aux_heat", "current_temperature", "current_humidity", "fan_mode",