#NEWLINE# def _turn_off_main( self , value_type = None , value = None ) : #NEWLINE# #INDENT# 'Turn the device off.' #NEWLINE# if ( ( value_type is None ) or ( value is None ) ) : #NEWLINE# #INDENT# _LOGGER . warning ( '%s: value_type %s, value = %s, None is not valid argument when setting child value' , self . _name , value_type , value ) #NEWLINE# return #NEWLINE# #UNINDENT# self . gateway . set_child_value ( self . node_id , self . child_id , value_type , value ) #NEWLINE# if self . gateway . optimistic : #NEWLINE# #INDENT# self . _state = False #NEWLINE# self . update_ha_state ( )