From e913330caadbdfcbf1fe823f185d7b6850df3a03 Mon Sep 17 00:00:00 2001 From: GrKoR Date: Sat, 24 Feb 2024 21:56:42 +0300 Subject: [PATCH] ref: python code cleaning --- components/aux_ac/climate.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/components/aux_ac/climate.py b/components/aux_ac/climate.py index 9e1d6d9..d4e5377 100644 --- a/components/aux_ac/climate.py +++ b/components/aux_ac/climate.py @@ -99,11 +99,6 @@ AirConDisplayOffAction = aux_ac_ns.class_( AirConDisplayOnAction = aux_ac_ns.class_( "AirConDisplayOnAction", automation.Action) -# test packet action -# AirConSendTestPacketAction = aux_ac_ns.class_( -# "AirConSendTestPacketAction", automation.Action -# ) - # vertical louvers actions AirConVLouverSwingAction = aux_ac_ns.class_( "AirConVLouverSwingAction", automation.Action) @@ -188,12 +183,6 @@ CUSTOM_PRESETS = { validate_custom_presets = cv.enum(CUSTOM_PRESETS, upper=True) -def validate_raw_data(value): - if isinstance(value, list): - return cv.Schema([cv.hex_uint8_t])(value) - raise cv.Invalid("data must be a list of bytes") - - def output_info(config): # _LOGGER.info(config.items()) return config