@@ -360,15 +360,15 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
360360
361361 async def async_set_preset_mode (self , preset_mode : str ) -> None :
362362 """Set new target preset mode."""
363- await self ._async_send_dpcode_update (self ._hvac_mode_wrapper , preset_mode )
363+ await self ._async_send_wrapper_updates (self ._hvac_mode_wrapper , preset_mode )
364364
365365 async def async_set_fan_mode (self , fan_mode : str ) -> None :
366366 """Set new target fan mode."""
367- await self ._async_send_dpcode_update (self ._fan_mode_wrapper , fan_mode )
367+ await self ._async_send_wrapper_updates (self ._fan_mode_wrapper , fan_mode )
368368
369369 async def async_set_humidity (self , humidity : int ) -> None :
370370 """Set new target humidity."""
371- await self ._async_send_dpcode_update (self ._target_humidity_wrapper , humidity )
371+ await self ._async_send_wrapper_updates (self ._target_humidity_wrapper , humidity )
372372
373373 async def async_set_swing_mode (self , swing_mode : str ) -> None :
374374 """Set new target swing operation."""
@@ -396,7 +396,7 @@ async def async_set_swing_mode(self, swing_mode: str) -> None:
396396
397397 async def async_set_temperature (self , ** kwargs : Any ) -> None :
398398 """Set new target temperature."""
399- await self ._async_send_dpcode_update (
399+ await self ._async_send_wrapper_updates (
400400 self ._set_temperature , kwargs [ATTR_TEMPERATURE ]
401401 )
402402
@@ -475,8 +475,8 @@ def swing_mode(self) -> str:
475475
476476 async def async_turn_on (self ) -> None :
477477 """Turn the device on, retaining current HVAC (if supported)."""
478- await self ._async_send_dpcode_update (self ._switch_wrapper , True )
478+ await self ._async_send_wrapper_updates (self ._switch_wrapper , True )
479479
480480 async def async_turn_off (self ) -> None :
481481 """Turn the device on, retaining current HVAC (if supported)."""
482- await self ._async_send_dpcode_update (self ._switch_wrapper , False )
482+ await self ._async_send_wrapper_updates (self ._switch_wrapper , False )
0 commit comments