@@ -546,7 +546,7 @@ def __set_value_fn_dynamic_buffer_temp(
546546 suitable_fn = __suitable_fn_device_control_basic_controller ,
547547 get_value_fn = __get_value_fn_device_control_default ,
548548 set_value_fn = __set_value_fn_device_control_default ,
549- at_type = None
549+ at_type_fn = lambda at_type : True
550550 ),
551551 ACInfinityDeviceNumberEntityDescription (
552552 key = DeviceControlKey .OFF_SPEED ,
@@ -562,7 +562,7 @@ def __set_value_fn_dynamic_buffer_temp(
562562 suitable_fn = __suitable_fn_device_control_basic_controller ,
563563 get_value_fn = __get_value_fn_device_control_default ,
564564 set_value_fn = __set_value_fn_device_control_default ,
565- at_type = None
565+ at_type_fn = lambda at_type : True
566566 ),
567567 ACInfinityDeviceNumberEntityDescription (
568568 key = DeviceControlKey .ON_SELF_SPEED ,
@@ -578,7 +578,7 @@ def __set_value_fn_dynamic_buffer_temp(
578578 suitable_fn = __suitable_fn_device_control_ai_controller ,
579579 get_value_fn = __get_value_fn_device_control_default ,
580580 set_value_fn = __set_value_fn_device_control_default ,
581- at_type = None
581+ at_type_fn = lambda at_type : at_type != AtType . OFF
582582 ),
583583 ACInfinityDeviceNumberEntityDescription (
584584 key = DeviceControlKey .TIMER_DURATION_TO_ON ,
@@ -594,7 +594,7 @@ def __set_value_fn_dynamic_buffer_temp(
594594 suitable_fn = __suitable_fn_device_control_default ,
595595 get_value_fn = __get_value_fn_timer_duration ,
596596 set_value_fn = __set_value_fn_timer_duration ,
597- at_type = AtType .TIMER_TO_ON
597+ at_type_fn = lambda at_type : at_type == AtType .TIMER_TO_ON
598598 ),
599599 ACInfinityDeviceNumberEntityDescription (
600600 key = DeviceControlKey .TIMER_DURATION_TO_OFF ,
@@ -610,7 +610,7 @@ def __set_value_fn_dynamic_buffer_temp(
610610 suitable_fn = __suitable_fn_device_control_default ,
611611 get_value_fn = __get_value_fn_timer_duration ,
612612 set_value_fn = __set_value_fn_timer_duration ,
613- at_type = AtType .TIMER_TO_OFF
613+ at_type_fn = lambda at_type : at_type == AtType .TIMER_TO_OFF
614614 ),
615615 ACInfinityDeviceNumberEntityDescription (
616616 key = DeviceControlKey .CYCLE_DURATION_ON ,
@@ -626,7 +626,7 @@ def __set_value_fn_dynamic_buffer_temp(
626626 suitable_fn = __suitable_fn_device_control_default ,
627627 get_value_fn = __get_value_fn_timer_duration ,
628628 set_value_fn = __set_value_fn_timer_duration ,
629- at_type = AtType .CYCLE
629+ at_type_fn = lambda at_type : at_type == AtType .CYCLE
630630 ),
631631 ACInfinityDeviceNumberEntityDescription (
632632 key = DeviceControlKey .CYCLE_DURATION_OFF ,
@@ -642,7 +642,7 @@ def __set_value_fn_dynamic_buffer_temp(
642642 suitable_fn = __suitable_fn_device_control_default ,
643643 get_value_fn = __get_value_fn_timer_duration ,
644644 set_value_fn = __set_value_fn_timer_duration ,
645- at_type = AtType .CYCLE
645+ at_type_fn = lambda at_type : at_type == AtType .CYCLE
646646 ),
647647 ACInfinityDeviceNumberEntityDescription (
648648 key = DeviceControlKey .VPD_LOW_TRIGGER ,
@@ -658,7 +658,7 @@ def __set_value_fn_dynamic_buffer_temp(
658658 suitable_fn = __suitable_fn_device_control_default ,
659659 get_value_fn = __get_value_fn_vpd_control ,
660660 set_value_fn = __set_value_fn_vpd_control ,
661- at_type = AtType .VPD
661+ at_type_fn = lambda at_type : at_type == AtType .VPD
662662 ),
663663 ACInfinityDeviceNumberEntityDescription (
664664 key = DeviceControlKey .VPD_HIGH_TRIGGER ,
@@ -674,7 +674,7 @@ def __set_value_fn_dynamic_buffer_temp(
674674 suitable_fn = __suitable_fn_device_control_default ,
675675 get_value_fn = __get_value_fn_vpd_control ,
676676 set_value_fn = __set_value_fn_vpd_control ,
677- at_type = AtType .VPD
677+ at_type_fn = lambda at_type : at_type == AtType .VPD
678678 ),
679679 ACInfinityDeviceNumberEntityDescription (
680680 key = DeviceControlKey .TARGET_VPD ,
@@ -690,7 +690,7 @@ def __set_value_fn_dynamic_buffer_temp(
690690 suitable_fn = __suitable_fn_device_control_default ,
691691 get_value_fn = __get_value_fn_vpd_control ,
692692 set_value_fn = __set_value_fn_vpd_control ,
693- at_type = AtType .VPD
693+ at_type_fn = lambda at_type : at_type == AtType .VPD
694694 ),
695695 ACInfinityDeviceNumberEntityDescription (
696696 key = DeviceControlKey .AUTO_HUMIDITY_LOW_TRIGGER ,
@@ -706,7 +706,7 @@ def __set_value_fn_dynamic_buffer_temp(
706706 suitable_fn = __suitable_fn_device_control_default ,
707707 get_value_fn = __get_value_fn_device_control_default ,
708708 set_value_fn = __set_value_fn_device_control_default ,
709- at_type = AtType .AUTO
709+ at_type_fn = lambda at_type : at_type == AtType .AUTO
710710 ),
711711 ACInfinityDeviceNumberEntityDescription (
712712 key = DeviceControlKey .AUTO_HUMIDITY_HIGH_TRIGGER ,
@@ -722,7 +722,7 @@ def __set_value_fn_dynamic_buffer_temp(
722722 suitable_fn = __suitable_fn_device_control_default ,
723723 get_value_fn = __get_value_fn_device_control_default ,
724724 set_value_fn = __set_value_fn_device_control_default ,
725- at_type = AtType .AUTO
725+ at_type_fn = lambda at_type : at_type == AtType .AUTO
726726 ),
727727 ACInfinityDeviceNumberEntityDescription (
728728 key = DeviceControlKey .TARGET_HUMI ,
@@ -738,7 +738,7 @@ def __set_value_fn_dynamic_buffer_temp(
738738 suitable_fn = __suitable_fn_device_control_default ,
739739 get_value_fn = __get_value_fn_device_control_default ,
740740 set_value_fn = __set_value_fn_device_control_default ,
741- at_type = AtType .AUTO
741+ at_type_fn = lambda at_type : at_type == AtType .AUTO
742742 ),
743743 ACInfinityDeviceNumberEntityDescription (
744744 key = DeviceControlKey .AUTO_TEMP_LOW_TRIGGER ,
@@ -754,7 +754,7 @@ def __set_value_fn_dynamic_buffer_temp(
754754 suitable_fn = __suitable_fn_device_control_default ,
755755 get_value_fn = __get_value_fn_device_control_default ,
756756 set_value_fn = __set_value_fn_temp_auto_low ,
757- at_type = AtType .AUTO
757+ at_type_fn = lambda at_type : at_type == AtType .AUTO
758758 ),
759759 ACInfinityDeviceNumberEntityDescription (
760760 key = DeviceControlKey .AUTO_TEMP_HIGH_TRIGGER ,
@@ -770,7 +770,7 @@ def __set_value_fn_dynamic_buffer_temp(
770770 suitable_fn = __suitable_fn_device_control_default ,
771771 get_value_fn = __get_value_fn_device_control_default ,
772772 set_value_fn = __set_value_fn_temp_auto_high ,
773- at_type = AtType .AUTO
773+ at_type_fn = lambda at_type : at_type == AtType .AUTO
774774 ),
775775 ACInfinityDeviceNumberEntityDescription (
776776 key = DeviceControlKey .TARGET_TEMP ,
@@ -786,7 +786,7 @@ def __set_value_fn_dynamic_buffer_temp(
786786 suitable_fn = __suitable_fn_device_control_default ,
787787 get_value_fn = __get_value_fn_device_control_default ,
788788 set_value_fn = __set_value_fn_target_temp ,
789- at_type = AtType .AUTO
789+ at_type_fn = lambda at_type : at_type == AtType .AUTO
790790 ),
791791 ACInfinityDeviceNumberEntityDescription (
792792 # F - native value 0-20
@@ -803,7 +803,7 @@ def __set_value_fn_dynamic_buffer_temp(
803803 suitable_fn = __suitable_fn_device_setting_temp_f ,
804804 get_value_fn = __get_value_fn_dynamic_transition_temp ,
805805 set_value_fn = __set_value_fn_dynamic_transition_temp ,
806- at_type = None
806+ at_type_fn = lambda at_type : True
807807 ),
808808 ACInfinityDeviceNumberEntityDescription (
809809 # C - native value 0-10
@@ -820,7 +820,7 @@ def __set_value_fn_dynamic_buffer_temp(
820820 suitable_fn = __suitable_fn_device_setting_temp_c ,
821821 get_value_fn = __get_value_fn_dynamic_transition_temp ,
822822 set_value_fn = __set_value_fn_dynamic_transition_temp ,
823- at_type = None
823+ at_type_fn = lambda at_type : True
824824 ),
825825 ACInfinityDeviceNumberEntityDescription (
826826 key = AdvancedSettingsKey .DYNAMIC_TRANSITION_HUMIDITY ,
@@ -836,7 +836,7 @@ def __set_value_fn_dynamic_buffer_temp(
836836 suitable_fn = __suitable_fn_device_setting_default ,
837837 get_value_fn = __get_value_fn_device_setting_default ,
838838 set_value_fn = __set_value_fn_device_setting_default ,
839- at_type = None
839+ at_type_fn = lambda at_type : True
840840 ),
841841 ACInfinityDeviceNumberEntityDescription (
842842 key = AdvancedSettingsKey .DYNAMIC_TRANSITION_VPD ,
@@ -852,7 +852,7 @@ def __set_value_fn_dynamic_buffer_temp(
852852 suitable_fn = __suitable_fn_device_setting_default ,
853853 get_value_fn = __get_value_fn_vpd_setting ,
854854 set_value_fn = __set_value_fn_vpd_setting ,
855- at_type = None
855+ at_type_fn = lambda at_type : True
856856 ),
857857 ACInfinityDeviceNumberEntityDescription (
858858 # F - native value 0-20
@@ -869,7 +869,7 @@ def __set_value_fn_dynamic_buffer_temp(
869869 suitable_fn = __suitable_fn_device_setting_temp_f ,
870870 get_value_fn = __get_value_fn_dynamic_buffer_temp ,
871871 set_value_fn = __set_value_fn_dynamic_buffer_temp ,
872- at_type = None
872+ at_type_fn = lambda at_type : True
873873 ),
874874 ACInfinityDeviceNumberEntityDescription (
875875 # C - native value 0-10
@@ -886,7 +886,7 @@ def __set_value_fn_dynamic_buffer_temp(
886886 suitable_fn = __suitable_fn_device_setting_temp_c ,
887887 get_value_fn = __get_value_fn_dynamic_buffer_temp ,
888888 set_value_fn = __set_value_fn_dynamic_buffer_temp ,
889- at_type = None
889+ at_type_fn = lambda at_type : True
890890 ),
891891 ACInfinityDeviceNumberEntityDescription (
892892 key = AdvancedSettingsKey .DYNAMIC_BUFFER_HUMIDITY ,
@@ -902,7 +902,7 @@ def __set_value_fn_dynamic_buffer_temp(
902902 suitable_fn = __suitable_fn_device_setting_default ,
903903 get_value_fn = __get_value_fn_device_setting_default ,
904904 set_value_fn = __set_value_fn_device_setting_default ,
905- at_type = None
905+ at_type_fn = lambda at_type : True
906906 ),
907907 ACInfinityDeviceNumberEntityDescription (
908908 key = AdvancedSettingsKey .DYNAMIC_BUFFER_VPD ,
@@ -918,7 +918,7 @@ def __set_value_fn_dynamic_buffer_temp(
918918 suitable_fn = __suitable_fn_device_setting_default ,
919919 get_value_fn = __get_value_fn_vpd_setting ,
920920 set_value_fn = __set_value_fn_vpd_setting ,
921- at_type = None
921+ at_type_fn = lambda at_type : True
922922 ),
923923 ACInfinityDeviceNumberEntityDescription (
924924 key = AdvancedSettingsKey .SUNRISE_TIMER_DURATION ,
@@ -934,7 +934,7 @@ def __set_value_fn_dynamic_buffer_temp(
934934 suitable_fn = __suitable_fn_device_setting_default ,
935935 get_value_fn = __get_value_fn_device_setting_default ,
936936 set_value_fn = __set_value_fn_device_setting_default ,
937- at_type = None
937+ at_type_fn = lambda at_type : True
938938 ),
939939]
940940
@@ -980,7 +980,7 @@ def __init__(
980980 device : ACInfinityDevice ,
981981 ) -> None :
982982 super ().__init__ (
983- coordinator , device , description .enabled_fn , description .suitable_fn , description .at_type , description .key , Platform .NUMBER
983+ coordinator , device , description .enabled_fn , description .suitable_fn , description .at_type_fn , description .key , Platform .NUMBER
984984 )
985985 self .entity_description = description
986986
0 commit comments